blob: ea450651da7e86ae5f0b103f071a794ebe2186c5 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ lib
, attrs
, buildPythonPackage
, commoncode
, fetchPypi
, packaging
, pyparsing
, pytestCheckHook
, pythonOlder
, saneyaml
, semantic-version
, semver
, setuptools-scm
}:
buildPythonPackage rec {
pname = "univers";
version = "30.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-IJeM9Nzfqs1B0xP43i6u65XSEVPdiGhXWuORglbNARI=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
attrs
packaging
pyparsing
semantic-version
semver
];
nativeCheckInputs = [
commoncode
pytestCheckHook
saneyaml
];
dontConfigure = true; # ./configure tries to setup virtualenv and downloads dependencies
pythonImportsCheck = [
"univers"
];
disabledTests = [
# No value for us
"test_codestyle"
# AssertionError starting with 30.10.0
"test_enhanced_semantic_version"
"test_semver_version"
];
meta = with lib; {
description = "Library for parsing version ranges and expressions";
homepage = "https://github.com/nexB/univers";
changelog = "https://github.com/nexB/univers/blob/v${version}/CHANGELOG.rst";
license = with licenses; [ asl20 bsd3 mit ];
maintainers = with maintainers; [ armijnhemel sbruder ];
};
}
|