1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pretend,
6 pyparsing,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "packvers";
13 version = "21.5";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "nexB";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-nCSYL0g7mXi9pGFt24pOXbmmYsaRuB+rRZrygf8DTLE=";
23 };
24
25 propagatedBuildInputs = [ pyparsing ];
26
27 nativeCheckInputs = [
28 pretend
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "packvers" ];
33
34 meta = with lib; {
35 description = "Module for version handling of modules";
36 homepage = "https://github.com/nexB/dparse2";
37 changelog = "https://github.com/nexB/packvers/blob/${version}/CHANGELOG.rst";
38 license = with licenses; [
39 asl20 # and
40 bsd2
41 ];
42 maintainers = with maintainers; [ fab ];
43 };
44}