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