1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, fetchFromGitHub
6, pytest-aiohttp
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "rki-covid-parser";
13 version = "1.3.3";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "thebino";
20 repo = pname;
21 rev = "v${version}";
22 hash = "sha256-e0MJjE4zgBPL+vt9EkgsdGrgqUyKK/1S9ZFxy56PUjc=";
23 };
24
25 propagatedBuildInputs = [
26 aiohttp
27 ];
28
29 nativeCheckInputs = [
30 aioresponses
31 pytest-aiohttp
32 pytestCheckHook
33 ];
34
35 disabledTestPaths = [
36 # Tests require netowrk access
37 "tests/test_districts.py"
38 "tests/test_endpoint_availibility.py"
39 ];
40
41 pythonImportsCheck = [
42 "rki_covid_parser"
43 ];
44
45 meta = with lib; {
46 description = "Python module for working with data from the Robert-Koch Institut";
47 homepage = "https://github.com/thebino/rki-covid-parser";
48 license = with licenses; [ asl20 ];
49 maintainers = with maintainers; [ fab ];
50 };
51}