1{ buildPythonPackage, fetchPypi, python 2, mock, testrepository, testtools 3, requests, six }: 4 5buildPythonPackage rec { 6 pname = "requests-mock"; 7 version = "1.5.2"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "7a5fa99db5e3a2a961b6f20ed40ee6baeff73503cf0a553cc4d679409e6170fb"; 12 }; 13 14 patchPhase = '' 15 sed -i 's@python@${python.interpreter}@' .testr.conf 16 ''; 17 18 checkInputs = [ mock testrepository testtools ]; 19 20 propagatedBuildInputs = [ requests six ]; 21}