1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 15:11:35 +00:00
nixpkgs/pkgs/development/python-modules/pyrax.nix

27 lines
861 B
Nix
Raw Normal View History

2017-03-09 09:22:20 +00:00
{ lib, buildPythonPackage, fetchurl, requests2, novaclient, keyring,
rackspace-novaclient, six, isPy3k }:
buildPythonPackage rec {
name = "pyrax-1.9.8";
src = fetchurl {
url = "mirror://pypi/p/pyrax/${name}.tar.gz";
sha256 = "1x98jzyxnvha81pgx3jpfixljhs7zik89yfp8q06kwpx8ws99nz9";
};
# no good reason given in commit why limited, and seems to work
patchPhase = ''
substituteInPlace "setup.py" \
--replace "python-novaclient==2.27.0" "python-novaclient"
'';
disabled = isPy3k;
propagatedBuildInputs = [ requests2 novaclient keyring rackspace-novaclient six ];
meta = {
homepage = "https://github.com/rackspace/pyrax";
license = lib.licenses.asl20;
description = "Python API to interface with Rackspace";
maintainers = with lib.maintainers; [ teh ];
};
}