From 38213f24a401bb67ec83904118248d0b56a8d6a3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Dec 2021 18:37:41 +0100 Subject: [PATCH] python3Packages.rki-covid-parser: init at 1.3.1 --- .../rki-covid-parser/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/rki-covid-parser/default.nix 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 000000000000..ec201fcd9f57 --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2f415e50f96f..0a96ad1cfd5c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8292,6 +8292,8 @@ in { rjsmin = callPackage ../development/python-modules/rjsmin { }; + rki-covid-parser = callPackage ../development/python-modules/rki-covid-parser { }; + rl-coach = callPackage ../development/python-modules/rl-coach { }; rlp = callPackage ../development/python-modules/rlp { };