pythonPackages.requests-mock: 1.3.0 -> 1.4.0
This commit is contained in:
parent
ef4a84007e
commit
a677419836
21
pkgs/development/python-modules/requests-mock/default.nix
Normal file
21
pkgs/development/python-modules/requests-mock/default.nix
Normal file
@ -0,0 +1,21 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, python
|
||||
, mock, testrepository, testtools
|
||||
, requests, six }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "requests-mock";
|
||||
version = "1.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2931887853c42e1d73879983d5bf03041109472991c5b4b8dba5d11ed23b9d0b";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's@python@${python.interpreter}@' .testr.conf
|
||||
'';
|
||||
|
||||
checkInputs = [ mock testrepository testtools ];
|
||||
|
||||
propagatedBuildInputs = [ requests six ];
|
||||
}
|
@ -9567,22 +9567,7 @@ in {
|
||||
|
||||
olefile = callPackage ../development/python-modules/olefile { };
|
||||
|
||||
requests-mock = buildPythonPackage rec {
|
||||
name = "requests-mock-${version}";
|
||||
version = "1.3.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/r/requests-mock/${name}.tar.gz";
|
||||
sha256 = "0jr997dvk6zbmhvbpcv3rajrgag69mcsm1ai3w3rgk2jdh6rg1mx";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
sed -i 's@python@${python.interpreter}@' .testr.conf
|
||||
'';
|
||||
|
||||
buildInputs = with self; [ pbr testtools testrepository mock ];
|
||||
propagatedBuildInputs = with self; [ six requests ];
|
||||
};
|
||||
requests-mock = callPackage ../development/python-modules/requests-mock { };
|
||||
|
||||
mox3 = buildPythonPackage rec {
|
||||
name = "mox3-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user