mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #148480 from fabaff/rki-covid-parser
python3Packages.rki-covid-parser: init at 1.3.1
This commit is contained in:
commit
2de6fcd509
2 changed files with 53 additions and 0 deletions
51
pkgs/development/python-modules/rki-covid-parser/default.nix
Normal file
51
pkgs/development/python-modules/rki-covid-parser/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -8336,6 +8336,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 { };
|
||||
|
|
Loading…
Reference in a new issue