1{ lib
2, attrs
3, buildPythonPackage
4, commoncode
5, fetchPypi
6, packaging
7, pyparsing
8, pytestCheckHook
9, pythonOlder
10, saneyaml
11, semantic-version
12, semver
13, setuptools-scm
14}:
15
16buildPythonPackage rec {
17 pname = "univers";
18 version = "30.11.0";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-xyrg8B+C5xUN8zHLrMbAe/MWjZb8fCL0MIAz2w4B7/U=";
26 };
27
28 nativeBuildInputs = [
29 setuptools-scm
30 ];
31
32 propagatedBuildInputs = [
33 attrs
34 packaging
35 pyparsing
36 semantic-version
37 semver
38 ];
39
40 nativeCheckInputs = [
41 commoncode
42 pytestCheckHook
43 saneyaml
44 ];
45
46 dontConfigure = true; # ./configure tries to setup virtualenv and downloads dependencies
47
48 pythonImportsCheck = [
49 "univers"
50 ];
51
52 disabledTests = [
53 # No value for us
54 "test_codestyle"
55 # AssertionError starting with 30.10.0
56 "test_enhanced_semantic_version"
57 "test_semver_version"
58 ];
59
60 meta = with lib; {
61 description = "Library for parsing version ranges and expressions";
62 homepage = "https://github.com/nexB/univers";
63 changelog = "https://github.com/nexB/univers/blob/v${version}/CHANGELOG.rst";
64 license = with licenses; [ asl20 bsd3 mit ];
65 maintainers = with maintainers; [ armijnhemel sbruder ];
66 };
67}