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