2018-07-21 00:44:44 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, python
|
2018-04-02 20:54:24 +00:00
|
|
|
, mock, testrepository, testtools
|
|
|
|
, requests, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-mock";
|
2018-06-12 16:47:06 +00:00
|
|
|
version = "1.5.0";
|
2018-04-02 20:54:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 16:47:06 +00:00
|
|
|
sha256 = "a029fe6c5244963ef042c6224ff787049bfc5bab958a1b7e5b632ef0bbb05de4";
|
2018-04-02 20:54:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ mock testrepository testtools ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
}
|