depot/third_party/nixpkgs/pkgs/development/python-modules/pyoutbreaksnearme/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

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 ];
};
}