66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, buildPythonPackage
|
|
, certifi
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, ujson
|
|
, yarl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyoutbreaksnearme";
|
|
version = "2023.10.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bachya";
|
|
repo = "pyoutbreaksnearme";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-G+/ooNhiYOaV0kjfr8Z1d31XxRYFArQnt1oIuMQfXdY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
certifi
|
|
ujson
|
|
yarl
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Ignore the examples directory as the files are prefixed with test_.
|
|
"examples/"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyoutbreaksnearme"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|