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