tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.univers: init at 30.7.0
Simon Bruder
3 years ago
6f67f850
9d36bc48
+52
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
univers
default.nix
top-level
python-packages.nix
+50
pkgs/development/python-modules/univers/default.nix
reviewed
···
1
1
+
{ lib
2
2
+
, fetchPypi
3
3
+
, fetchpatch
4
4
+
, buildPythonPackage
5
5
+
, setuptools-scm
6
6
+
, attrs
7
7
+
, packaging
8
8
+
, pyparsing
9
9
+
, semantic-version
10
10
+
, semver
11
11
+
, commoncode
12
12
+
, pytestCheckHook
13
13
+
, saneyaml
14
14
+
}:
15
15
+
16
16
+
buildPythonPackage rec {
17
17
+
pname = "univers";
18
18
+
version = "30.7.0";
19
19
+
20
20
+
src = fetchPypi {
21
21
+
inherit pname version;
22
22
+
sha256 = "sha256-yM0SDBpkiZEbaZ0ugjiMwwUFKqZGbmh1JNlv5qvPAYo=";
23
23
+
};
24
24
+
25
25
+
patches = [
26
26
+
# Make tests work when not using virtualenv, can be dropped with the next version
27
27
+
# Upstream PR (already merged): https://github.com/nexB/univers/pull/77
28
28
+
(fetchpatch {
29
29
+
url = "https://github.com/nexB/univers/commit/b74229cc1c8790287633cd7220d6b2e97c508302.patch";
30
30
+
sha256 = "sha256-i6zWv9rAlwCMghd9g5FP6WIQLLDLYvp+6qJ1E7nfTSY=";
31
31
+
})
32
32
+
];
33
33
+
34
34
+
nativeBuildInputs = [ setuptools-scm ];
35
35
+
propagatedBuildInputs = [ attrs packaging pyparsing semantic-version semver ];
36
36
+
checkInputs = [ commoncode pytestCheckHook saneyaml ];
37
37
+
38
38
+
dontConfigure = true; # ./configure tries to setup virtualenv and downloads dependencies
39
39
+
40
40
+
disabledTests = [ "test_codestyle" ];
41
41
+
42
42
+
pythonImportsCheck = [ "univers" ];
43
43
+
44
44
+
meta = with lib; {
45
45
+
description = "Library for parsing version ranges and expressions";
46
46
+
homepage = "https://github.com/nexB/univers";
47
47
+
license = with licenses; [ asl20 bsd3 mit ];
48
48
+
maintainers = with maintainers; [ armijnhemel sbruder ];
49
49
+
};
50
50
+
}
+2
pkgs/top-level/python-packages.nix
reviewed
···
11011
11011
11012
11012
unittest-xml-reporting = callPackage ../development/python-modules/unittest-xml-reporting { };
11013
11013
11014
11014
+
univers = callPackage ../development/python-modules/univers { };
11015
11015
+
11014
11016
unpaddedbase64 = callPackage ../development/python-modules/unpaddedbase64 { };
11015
11017
11016
11018
unrardll = callPackage ../development/python-modules/unrardll { };