1{ lib, buildPythonPackage, fetchPypi, python 2, mock 3, purl 4, requests 5, six 6, testrepository 7, testtools 8, pytest 9}: 10 11buildPythonPackage rec { 12 pname = "requests-mock"; 13 version = "1.9.3"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "8d72abe54546c1fc9696fa1516672f1031d72a55a1d66c85184f972a24ba0eba"; 18 }; 19 20 patchPhase = '' 21 sed -i 's@python@${python.interpreter}@' .testr.conf 22 ''; 23 24 propagatedBuildInputs = [ requests six ]; 25 26 checkInputs = [ mock purl testrepository testtools pytest ]; 27 28 meta = with lib; { 29 description = "Mock out responses from the requests package"; 30 homepage = "https://requests-mock.readthedocs.io"; 31 license = licenses.asl20; 32 maintainers = [ ]; 33 }; 34}