nixpkgs/pkgs/development/python-modules/keystoneclient/default.nix
2017-08-28 09:03:07 +01:00

52 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 {
name = "keystoneclient-${version}";
version = "1.8.1";
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;
};
}