depot/third_party/nixpkgs/pkgs/development/python-modules/rki-covid-parser/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

57 lines
1.1 KiB
Nix

{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "rki-covid-parser";
version = "1.3.3";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "thebino";
repo = "rki-covid-parser";
rev = "refs/tags/v${version}";
hash = "sha256-e0MJjE4zgBPL+vt9EkgsdGrgqUyKK/1S9ZFxy56PUjc=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
];
nativeCheckInputs = [
aioresponses
pytest-aiohttp
pytestCheckHook
];
disabledTestPaths = [
# Tests require netowrk access
"tests/test_districts.py"
"tests/test_endpoint_availibility.py"
];
pythonImportsCheck = [
"rki_covid_parser"
];
meta = with lib; {
description = "Python module for working with data from the Robert-Koch Institut";
homepage = "https://github.com/thebino/rki-covid-parser";
changelog = "https://github.com/thebino/rki-covid-parser/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}