1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pretend,
6 pyparsing,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "packvers";
14 version = "21.5";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "nexB";
21 repo = "packvers";
22 tag = version;
23 hash = "sha256-nCSYL0g7mXi9pGFt24pOXbmmYsaRuB+rRZrygf8DTLE=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [ pyparsing ];
29
30 nativeCheckInputs = [
31 pretend
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "packvers" ];
36
37 disabledTests = [
38 # Failed: DID NOT RAISE <class 'packvers.requirements.InvalidRequirement'>
39 "test_invalid_file_urls"
40 ];
41
42 meta = with lib; {
43 description = "Module for version handling of modules";
44 homepage = "https://github.com/aboutcode-org/packvers";
45 changelog = "https://github.com/nexB/packvers/blob/${version}/CHANGELOG.rst";
46 license = with licenses; [
47 asl20 # and
48 bsd2
49 ];
50 maintainers = with maintainers; [ fab ];
51 };
52}