3cbfd2b52c
GitOrigin-RevId: 395879c28386e1abf20c7ecacd45880759548391
51 lines
995 B
Nix
51 lines
995 B
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rki-covid-parser";
|
|
version = "1.3.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thebino";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "UTLWBbNjvRuBwc5JD8l+izJu5vODLwS16ExdxUPT14A=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
checkInputs = [
|
|
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";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|