2021-08-18 13:19:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchFromGitHub
|
2022-12-17 10:02:37 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-httpserver
|
2021-08-18 13:19:15 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2022-12-17 10:02:37 +00:00
|
|
|
, toml
|
|
|
|
, types-toml
|
|
|
|
, typing-extensions
|
2021-08-18 13:19:15 +00:00
|
|
|
, urllib3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "responses";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.22.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getsentry";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-VOIpowxPvYmufnj9MM/vMtZQDIOxorAhMCNK0fX/j1U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2022-12-17 10:02:37 +00:00
|
|
|
toml
|
|
|
|
types-toml
|
2022-02-10 20:34:41 +00:00
|
|
|
urllib3
|
2022-12-17 10:02:37 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
2021-08-18 13:19:15 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2021-08-18 13:19:15 +00:00
|
|
|
checkInputs = [
|
2022-12-17 10:02:37 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpserver
|
2021-08-18 13:19:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"responses"
|
|
|
|
];
|
2021-08-18 13:19:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for mocking out the requests Python library";
|
|
|
|
homepage = "https://github.com/getsentry/responses";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|