summary refs log tree commit diff
path: root/pkgs/development/python-modules/packvers/default.nix
blob: 5ec3bd628c3e834d17aa19b5261bab19c9a5a0e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchFromGitHub
, pretend
, pyparsing
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "packvers";
  version = "21.5";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "nexB";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-nCSYL0g7mXi9pGFt24pOXbmmYsaRuB+rRZrygf8DTLE=";
  };

  propagatedBuildInputs = [
    pyparsing
  ];

  nativeCheckInputs = [
    pretend
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "packvers"
  ];

  meta = with lib; {
    description = "Module for version handling of modules";
    homepage = "https://github.com/nexB/dparse2";
    changelog = "https://github.com/nexB/packvers/blob/${version}/CHANGELOG.rst";
    license = with licenses; [ asl20 /* and */ bsd2 ];
    maintainers = with maintainers; [ fab ];
  };
}