2018-07-21 01:44:44 +01:00
|
|
|
{ buildPythonPackage, fetchPypi, python
|
2018-04-02 21:54:24 +01:00
|
|
|
, mock, testrepository, testtools
|
|
|
|
, requests, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-mock";
|
2018-07-22 11:19:57 +01:00
|
|
|
version = "1.5.2";
|
2018-04-02 21:54:24 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:19:57 +01:00
|
|
|
sha256 = "7a5fa99db5e3a2a961b6f20ed40ee6baeff73503cf0a553cc4d679409e6170fb";
|
2018-04-02 21:54:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ mock testrepository testtools ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests six ];
|
|
|
|
}
|