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.10.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "sha256-WcnDJBmp+xroPsJC2Y6InEW9fXpl1IN1zCQ+wIRBZYs=";
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}