1{ lib
2, buildPythonPackage
3, fetchPypi
4, fixtures
5, purl
6, pytestCheckHook
7, python
8, requests
9, requests-futures
10, six
11, testtools
12}:
13
14buildPythonPackage rec {
15 pname = "requests-mock";
16 version = "1.11.0";
17 format = "setuptools";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-7xC1crSJpfKOCbcIaXIIxKOyuJ74Cp8BWENA6jV+w8Q=";
22 };
23
24 propagatedBuildInputs = [ requests six ];
25
26 nativeCheckInputs = [
27 fixtures
28 purl
29 pytestCheckHook
30 requests-futures
31 testtools
32 ];
33
34 meta = with lib; {
35 description = "Mock out responses from the requests package";
36 homepage = "https://requests-mock.readthedocs.io";
37 changelog = "https://github.com/jamielennox/requests-mock/releases/tag/${version}";
38 license = licenses.asl20;
39 maintainers = [ ];
40 };
41}