From 7f2d3ed8456acb62fb1ceef1abac1a2356bff52b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Oct 2023 09:02:56 +0200 Subject: [PATCH 1/2] python311Packages.pyyardian: init at 1.1.1 Module for interacting with the Yardian irrigation controller https://github.com/h3l1o5/pyyardian --- .../python-modules/pyyardian/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/pyyardian/default.nix diff --git a/pkgs/development/python-modules/pyyardian/default.nix b/pkgs/development/python-modules/pyyardian/default.nix new file mode 100644 index 000000000000..63318cbfcaef --- /dev/null +++ b/pkgs/development/python-modules/pyyardian/default.nix @@ -0,0 +1,46 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, setuptools +, pythonOlder +, wheel +}: + +buildPythonPackage rec { + pname = "pyyardian"; + version = "1.1.1"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "h3l1o5"; + repo = "pyyardian"; + rev = "refs/tags/${version}"; + hash = "sha256-dnHHRGt3TsWJb6tzx+i1gb9hkLJYPVdCt92UGKuO6Mg="; + }; + + nativeBuildInputs = [ + setuptools + wheel + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Tests require network access + doCheck = false; + + pythonImportsCheck = [ + "pyyardian" + ]; + + meta = with lib; { + description = "Module for interacting with the Yardian irrigation controller"; + homepage = "https://github.com/h3l1o5/pyyardian"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 789abd0da23b..c3673247efa2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11741,6 +11741,8 @@ self: super: with self; { pyyaml-include = callPackage ../development/python-modules/pyyaml-include { }; + pyyardian = callPackage ../development/python-modules/pyyardian { }; + pyzerproc = callPackage ../development/python-modules/pyzerproc { }; pyzmq = callPackage ../development/python-modules/pyzmq { }; From 24f2576315c7d59a4eed3284fec46d367a69d1be Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 7 Oct 2023 09:05:44 +0200 Subject: [PATCH 2/2] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 2082b9642463..7408e89b1244 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4877,7 +4877,8 @@ "yandextts" = ps: with ps; [ ]; "yardian" = ps: with ps; [ - ]; # missing inputs: pyyardian + pyyardian + ]; "yeelight" = ps: with ps; [ aiohttp-cors async-upnp-client @@ -5742,6 +5743,7 @@ "yamaha_musiccast" "yandex_transport" "yandextts" + "yardian" "yeelight" "yolink" "youless"