diff --git a/pkgs/development/python-modules/schiene/default.nix b/pkgs/development/python-modules/schiene/default.nix new file mode 100644 index 000000000000..8f479500a138 --- /dev/null +++ b/pkgs/development/python-modules/schiene/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +, beautifulsoup4 +}: + +buildPythonPackage rec { + pname = "schiene"; + version = "0.23"; + + src = fetchPypi { + inherit pname version; + sha256 = "014aaxmk7yxyml1xgfk3zqallyb5zi04m0v7jgqjkbjqq4n4j3ck"; + }; + + propagatedBuildInputs = [ + requests + beautifulsoup4 + ]; + + # tests are not present + doCheck = false; + + pythonImportsCheck = [ "schiene" ]; + + meta = with lib; { + description = "Python library for interacting with Bahn.de"; + homepage = "https://github.com/kennell/schiene"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 6c30f451b219..9b3b6e662b91 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -161,7 +161,7 @@ "denon" = ps: with ps; [ ]; "denonavr" = ps: with ps; [ denonavr getmac ]; "derivative" = ps: with ps; [ ]; - "deutsche_bahn" = ps: with ps; [ ]; # missing inputs: schiene + "deutsche_bahn" = ps: with ps; [ schiene ]; "device_automation" = ps: with ps; [ ]; "device_sun_light_trigger" = ps: with ps; [ aiohttp-cors pillow ]; "device_tracker" = ps: with ps; [ ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e0a946883df6..0674d48cfa60 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6636,6 +6636,8 @@ in { schema = callPackage ../development/python-modules/schema { }; + schiene = callPackage ../development/python-modules/schiene { }; + scikit-bio = callPackage ../development/python-modules/scikit-bio { }; scikit-build = callPackage ../development/python-modules/scikit-build { };