fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
52 lines
1.1 KiB
Nix
52 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 ];
|
|
};
|
|
}
|