2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytestCheckHook,
|
2024-07-31 10:19:44 +00:00
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aresponses";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "3.0.0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-07-31 10:19:44 +00:00
|
|
|
owner = "aresponses";
|
|
|
|
repo = "aresponses";
|
2021-01-15 22:18:51 +00:00
|
|
|
rev = version;
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-RklXlIsbdq46/7D6Hv4mdskunqw1a7SFF09OjhrvMRY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
dependencies = [
|
2021-01-15 22:18:51 +00:00
|
|
|
aiohttp
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
disabledTests = [
|
2022-02-10 20:34:41 +00:00
|
|
|
# Disable tests which requires network access
|
2021-01-15 22:18:51 +00:00
|
|
|
"test_foo"
|
|
|
|
"test_passthrough"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aresponses" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-07-31 10:19:44 +00:00
|
|
|
changelog = "https://github.com/aresponses/aresponses/blob/${src.rev}/README.md#changelog";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Asyncio testing server";
|
2024-07-31 10:19:44 +00:00
|
|
|
homepage = "https://github.com/aresponses/aresponses";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with maintainers; [ makefu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|