diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-03 18:37:41 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-03 18:41:30 +0100 |
commit | 38213f24a401bb67ec83904118248d0b56a8d6a3 (patch) | |
tree | 55a5ad5c254f88c911e8af16ce391b5d5723aebf /pkgs/development/python-modules/rki-covid-parser | |
parent | 54060c0a1fa1f7bb854246ee04759902fca9dad4 (diff) |
python3Packages.rki-covid-parser: init at 1.3.1
Diffstat (limited to 'pkgs/development/python-modules/rki-covid-parser')
-rw-r--r-- | pkgs/development/python-modules/rki-covid-parser/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/rki-covid-parser/default.nix b/pkgs/development/python-modules/rki-covid-parser/default.nix new file mode 100644 index 0000000000000..ec201fcd9f579 --- /dev/null +++ b/pkgs/development/python-modules/rki-covid-parser/default.nix @@ -0,0 +1,51 @@ +{ 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 ]; + }; +} |