blob: f7e91699b9b262ea76d2233a4208e39ba90aac0d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
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 ];
};
}
|