1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytest-localserver
5, pytestCheckHook
6, pythonOlder
7, requests
8, urllib3
9}:
10
11buildPythonPackage rec {
12 pname = "responses";
13 version = "0.21.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 __darwinAllowLocalNetworking = true;
19
20 src = fetchFromGitHub {
21 owner = "getsentry";
22 repo = pname;
23 rev = version;
24 hash = "sha256-qYohrXrQkUBPo7yC+ZOwidDaCg/2nteXKAOCUvR4k2Q=";
25 };
26
27 propagatedBuildInputs = [
28 requests
29 urllib3
30 ];
31
32 checkInputs = [
33 pytest-localserver
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "responses"
39 ];
40
41 meta = with lib; {
42 description = "Python module for mocking out the requests Python library";
43 homepage = "https://github.com/getsentry/responses";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ fab ];
46 };
47}