tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python39Packages.oslo-i18n: init at 5.1.0
Sandro Jäckel
4 years ago
b5c77041
1adeb1f2
+48
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
oslo-i18n
default.nix
top-level
python-packages.nix
+46
pkgs/development/python-modules/oslo-i18n/default.nix
reviewed
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, oslotest
5
5
+
, pbr
6
6
+
, testscenarios
7
7
+
, stestr
8
8
+
}:
9
9
+
10
10
+
buildPythonPackage rec {
11
11
+
pname = "oslo-i18n";
12
12
+
version = "5.1.0";
13
13
+
14
14
+
src = fetchPypi {
15
15
+
pname = "oslo.i18n";
16
16
+
inherit version;
17
17
+
sha256 = "6bf111a6357d5449640852de4640eae4159b5562bbba4c90febb0034abc095d0";
18
18
+
};
19
19
+
20
20
+
postPatch = ''
21
21
+
# only a small portion of the listed packages are actually needed for running the tests
22
22
+
# so instead of removing them one by one remove everything
23
23
+
rm test-requirements.txt
24
24
+
'';
25
25
+
26
26
+
nativeBuildInputs = [ pbr ];
27
27
+
28
28
+
checkInputs = [
29
29
+
oslotest
30
30
+
stestr
31
31
+
testscenarios
32
32
+
];
33
33
+
34
34
+
checkPhase = ''
35
35
+
stestr run
36
36
+
'';
37
37
+
38
38
+
pythonImportsCheck = [ "oslo_i18n" ];
39
39
+
40
40
+
meta = with lib; {
41
41
+
description = "Oslo i18n library";
42
42
+
homepage = "https://github.com/openstack/oslo.i18n";
43
43
+
license = licenses.asl20;
44
44
+
maintainers = teams.openstack.members;
45
45
+
};
46
46
+
}
+2
pkgs/top-level/python-packages.nix
reviewed
···
5162
5162
5163
5163
oslo-db = callPackage ../development/python-modules/oslo-db { };
5164
5164
5165
5165
+
oslo-i18n = callPackage ../development/python-modules/oslo-i18n { };
5166
5166
+
5165
5167
osqp = callPackage ../development/python-modules/osqp { };
5166
5168
5167
5169
outcome = callPackage ../development/python-modules/outcome { };