-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenstackclient.nix
54 lines (45 loc) · 1.15 KB
/
openstackclient.nix
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
{ stdenv, fetchurl, python2, python2Packages, xmlsec, which, openssl, callPackage }:
with python2Packages;
let
modpacks = callPackage ./python-packages.nix {};
in
buildPythonPackage rec {
name = "openstackclient-${version}";
version = "3.2.1";
PBR_VERSION = "${version}";
src = fetchurl {
url = "https://github.com/openstack/python-openstackclient/archive/${version}.tar.gz";
sha256 = "04sk43lkm3wsz41jnlhyjx2qvv9c3z6n9n55rk5vrsc6x9mb7fpf";
};
propagatedBuildInputs = [
modpacks.pbr
six
Babel
modpacks.cliff
modpacks.os-client-config
modpacks.oslo-config
modpacks.oslo-i18n
modpacks.oslo-utils
modpacks.glanceclient
modpacks.keystoneclient
modpacks.novaclient
modpacks.cinderclient
modpacks.neutronclient
modpacks.requests
modpacks.stevedore
modpacks.cliff-tablib
modpacks.osc-lib
modpacks.openstacksdk
];
buildInputs = [
modpacks.requests-mock
];
## can't pass test
doCheck = false;
patchPhase = ''
sed -i 's@python@${python.interpreter}@' .testr.conf
'';
meta = with stdenv.lib; {
homepage = "http://wiki.openstack.org/OpenStackClient";
};
}