nixos/doh-server: init
[NixPkgs.git] / pkgs / development / python-modules / responses / default.nix
blob0043ad6881a417a9319e2daa76d3c6ddb073ffc2
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytest-asyncio,
6   pytest-httpserver,
7   pytestCheckHook,
8   pythonOlder,
9   pyyaml,
10   requests,
11   setuptools,
12   tomli,
13   tomli-w,
14   types-pyyaml,
15   types-toml,
16   urllib3,
19 buildPythonPackage rec {
20   pname = "responses";
21   version = "0.25.3";
22   pyproject = true;
24   disabled = pythonOlder "3.8";
26   __darwinAllowLocalNetworking = true;
28   src = fetchFromGitHub {
29     owner = "getsentry";
30     repo = pname;
31     tag = version;
32     hash = "sha256-+iRrmRAe8RWcts2LMFvykroQ5sL7+hW6Wrs7Kd1mzBM=";
33   };
35   nativeBuildInputs = [ setuptools ];
37   propagatedBuildInputs = [
38     pyyaml
39     requests
40     types-pyyaml
41     types-toml
42     urllib3
43   ];
45   nativeCheckInputs = [
46     pytest-asyncio
47     pytest-httpserver
48     pytestCheckHook
49     tomli-w
50   ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
52   pythonImportsCheck = [ "responses" ];
54   meta = with lib; {
55     description = "Python module for mocking out the requests Python library";
56     homepage = "https://github.com/getsentry/responses";
57     changelog = "https://github.com/getsentry/responses/blob/${version}/CHANGES";
58     license = licenses.asl20;
59     maintainers = with maintainers; [ fab ];
60   };