pythonPackages.requests-mock: 1.3.0 -> 1.4.0

This commit is contained in:
Robert Schütz
2018-04-02 22:54:24 +02:00
committed by Frederik Rietdijk
parent ef4a84007e
commit a677419836
2 changed files with 22 additions and 16 deletions

View 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 ];
}