Skip to content

Commit 3efa01f

Browse files
committed
nix: add package python-openstackclient
Signed-off-by: Paul Kroeher <paul.kroeher@cyberus-technology.de> On-behalf-of: SAP paul.kroeher@sap.com
1 parent 5edfb09 commit 3efa01f

1 file changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
openstacksdk,
3+
osc-lib,
4+
oslo-i18n,
5+
python-cinderclient,
6+
python-keystoneclient,
7+
python3Packages,
8+
}:
9+
let
10+
inherit (python3Packages)
11+
ddt
12+
cliff
13+
cryptography
14+
iso8601
15+
pbr
16+
pythonOlder
17+
requests
18+
requests-mock
19+
stestr
20+
stevedore
21+
;
22+
in
23+
python3Packages.buildPythonPackage rec {
24+
pname = "python_openstackclient";
25+
version = "8.0.0";
26+
pyproject = true;
27+
28+
disabled = pythonOlder "3.9";
29+
30+
src = python3Packages.fetchPypi {
31+
inherit pname version;
32+
hash = "sha256-W3peBok/gztdKW0BnFDULHNo43dI7mvo6bFWVbmZQk4=";
33+
};
34+
35+
build-system = [
36+
python3Packages.pbr
37+
python3Packages.setuptools
38+
];
39+
40+
nativeBuildInputs = [
41+
pbr
42+
];
43+
44+
dependencies = [
45+
cliff
46+
cryptography
47+
iso8601
48+
openstacksdk
49+
osc-lib
50+
oslo-i18n
51+
pbr
52+
python-cinderclient
53+
python-keystoneclient
54+
requests
55+
stevedore
56+
];
57+
58+
checkInputs = [
59+
ddt
60+
requests-mock
61+
stestr
62+
];
63+
64+
nativeCheckInputs = [
65+
stestr
66+
];
67+
68+
checkPhase = ''
69+
stestr run --exclude-regex test_endpoint_list_project_with_project_domain
70+
'';
71+
}

0 commit comments

Comments
 (0)