pythonPackages.keystoneauth1: fix missing argparse dep
This commit is contained in:
parent
f79d21da65
commit
76ea4df5f9
27
pkgs/development/python-modules/keystoneauth1/default.nix
Normal file
27
pkgs/development/python-modules/keystoneauth1/default.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{ buildPythonPackage, isPyPy, fetchPypi, python
|
||||||
|
, pbr, testtools, testresources, testrepository, mock
|
||||||
|
, pep8, fixtures, mox3, requests-mock
|
||||||
|
, iso8601, requests, six, stevedore, webob, oslo-config
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "keystoneauth1";
|
||||||
|
version = "1.1.0";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
disabled = isPyPy; # a test fails
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "05fc6xsp5mal52ijvj84sf7mrw706ihadfdf5mnq9zxn7pfl4118";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ pbr testtools testresources testrepository mock
|
||||||
|
pep8 fixtures mox3 requests-mock ];
|
||||||
|
propagatedBuildInputs = [ iso8601 requests six stevedore
|
||||||
|
webob oslo-config ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
||||||
|
substituteInPlace requirements.txt --replace "argparse"
|
||||||
|
'';
|
||||||
|
}
|
@ -17046,24 +17046,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
keystoneauth1 = buildPythonPackage rec {
|
keystoneauth1 = callPackage ../development/python-modules/keystoneauth1 {};
|
||||||
name = "keystoneauth1-${version}";
|
|
||||||
version = "1.1.0";
|
|
||||||
disabled = isPyPy; # a test fails
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/k/keystoneauth1/${name}.tar.gz";
|
|
||||||
sha256 = "05fc6xsp5mal52ijvj84sf7mrw706ihadfdf5mnq9zxn7pfl4118";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pbr testtools testresources testrepository mock
|
|
||||||
pep8 fixtures mox3 requests-mock ];
|
|
||||||
propagatedBuildInputs = with self; [ argparse iso8601 requests six stevedore
|
|
||||||
webob oslo-config ];
|
|
||||||
patchPhase = ''
|
|
||||||
sed -i 's@python@${python.interpreter}@' .testr.conf
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
requests-mock = buildPythonPackage rec {
|
requests-mock = buildPythonPackage rec {
|
||||||
name = "requests-mock-${version}";
|
name = "requests-mock-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user