nixpkgs/pkgs/development/python-modules/keystoneclient/default.nix

54 lines
1.4 KiB
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub, python
, pbr, testtools, testresources, testrepository
, requests-mock, fixtures, openssl, oslotest, pep8
, oslo-serialization, oslo-config, oslo-i18n, oslo-utils
, Babel, prettytable, requests, six, iso8601, stevedore
, netaddr, debtcollector, bandit, webob, mock, pycrypto
}:
buildPythonPackage rec {
pname = "keystoneclient";
version = "1.8.1";
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "openstack";
repo = "python-keystoneclient";
rev = version;
sha256 = "0yayn1hb3mncqb0isy8vy6d519xya7mhf5pcbn60fzdqjrkj2prq";
};
PBR_VERSION = "${version}";
buildInputs = [
pbr testtools testresources testrepository requests-mock fixtures openssl
oslotest pep8
];
propagatedBuildInputs = [
oslo-serialization oslo-config oslo-i18n oslo-utils
Babel prettytable requests six iso8601 stevedore
netaddr debtcollector bandit webob mock pycrypto
];
postPatch = ''
sed -i 's@python@${python.interpreter}@' .testr.conf
sed -ie '/argparse/d' requirements.txt
'';
doCheck = false; # The checkPhase below is broken
checkPhase = ''
patchShebangs run_tests.sh
./run_tests.sh
'';
meta = with stdenv.lib; {
homepage = https://github.com/openstack/python-novaclient/;
description = "Client library and command line tool for the OpenStack Nova API";
license = licenses.asl20;
platforms = platforms.linux;
};
}