From 6c6f2931e4dc5c46cf48a4915e50dd245d185b8d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 14 Nov 2023 08:28:59 +0100 Subject: [PATCH 1/2] python311Packages.pysuez: init at 0.2.0 --- .../python-modules/pysuez/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/pysuez/default.nix diff --git a/pkgs/development/python-modules/pysuez/default.nix b/pkgs/development/python-modules/pysuez/default.nix new file mode 100644 index 000000000000..34f6de519266 --- /dev/null +++ b/pkgs/development/python-modules/pysuez/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, requests +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pysuez"; + version = "0.2.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "ooii"; + repo = "pySuez"; + rev = "refs/tags/v${version}"; + hash = "sha256-Xgd0E/oFO2yyytBjuwr1vDJfKWC0Iw8P6GStCuCni/g="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + requests + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "pysuez" + ]; + + meta = with lib; { + description = "Module to get water consumption data from Suez"; + homepage = "https://github.com/ooii/pySuez"; + changelog = "https://github.com/ooii/pySuez/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c76f4ea814d6..291646e8a905 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9237,6 +9237,8 @@ self: super: with self; { pysubs2 = callPackage ../development/python-modules/pysubs2 { }; + pysuez = callPackage ../development/python-modules/pysuez { }; + pysqlitecipher = callPackage ../development/python-modules/pysqlitecipher { }; pysyncthru = callPackage ../development/python-modules/pysyncthru { }; From 74971b137da907366cfb20f51b279c5bb6b5247d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 14 Nov 2023 08:29:20 +0100 Subject: [PATCH 2/2] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 271ed97c857a..3ddddad0d44c 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4144,7 +4144,8 @@ subarulink ]; "suez_water" = ps: with ps; [ - ]; # missing inputs: pysuez + pysuez + ]; "sun" = ps: with ps; [ ]; "supervisord" = ps: with ps; [