Skip to content

Commit

Permalink
pyrax: 1.8.2 -> 1.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
teh committed Mar 9, 2017
1 parent f2480bd commit a9aeb10
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/pyrax.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ 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 ];
};
}
20 changes: 1 addition & 19 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21556,25 +21556,7 @@ in {

rackspace-novaclient = callPackage ../development/python-modules/rackspace-novaclient.nix { };

pyrax = buildPythonPackage rec {
name = "pyrax-1.8.2";

src = pkgs.fetchurl {
url = "mirror://pypi/p/pyrax/${name}.tar.gz";
sha256 = "0hvim60bhgfj91m7pp8jfmb49f087xqlgkqa505zw28r7yl0hcfp";
};

propagatedBuildInputs = with self; [ requests2 ];
doCheck = false;

meta = {
broken = true; # missing lots of dependencies with rackspace-novaclient
homepage = "https://github.com/rackspace/pyrax";
license = licenses.mit;
description = "Python API to interface with Rackspace";
};
};

pyrax = callPackage ../development/python-modules/pyrax.nix { };

pyreport = buildPythonPackage (rec {
name = "pyreport-0.3.4c";
Expand Down

0 comments on commit a9aeb10

Please sign in to comment.