2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aresponses
|
|
|
|
, buildPythonPackage
|
2023-10-19 13:55:26 +00:00
|
|
|
, certifi
|
2021-02-22 21:28:39 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, ujson
|
2023-10-19 13:55:26 +00:00
|
|
|
, yarl
|
2021-02-22 21:28:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-02-16 17:41:37 +00:00
|
|
|
pname = "pyoutbreaksnearme";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2023.12.0";
|
2023-10-19 13:55:26 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bachya";
|
2023-10-19 13:55:26 +00:00
|
|
|
repo = "pyoutbreaksnearme";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-oR/DApOxNSSczrBeH4sytd/vasbD4rA1poW4zNoeAnU=";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2023-10-19 13:55:26 +00:00
|
|
|
certifi
|
2021-02-22 21:28:39 +00:00
|
|
|
ujson
|
2023-10-19 13:55:26 +00:00
|
|
|
yarl
|
2021-02-22 21:28:39 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-22 21:28:39 +00:00
|
|
|
aresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Ignore the examples directory as the files are prefixed with test_.
|
|
|
|
"examples/"
|
|
|
|
];
|
2021-08-08 23:34:03 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
2023-02-16 17:41:37 +00:00
|
|
|
"pyoutbreaksnearme"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2021-02-22 21:28:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-02-16 17:41:37 +00:00
|
|
|
description = "Library for retrieving data from for Outbreaks Near Me";
|
|
|
|
homepage = "https://github.com/bachya/pyoutbreaksnearme";
|
|
|
|
changelog = "https://github.com/bachya/pyoutbreaksnearme/releases/tag/${version}";
|
2021-02-22 21:28:39 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|