From 9981890cbc9173a30d3bb32964e11b484a4f322a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Nov 2021 16:30:59 +0100 Subject: [PATCH 1/2] python3Packages.pyskyqhub: init at 0.1.4 --- .../python-modules/pyskyqhub/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/pyskyqhub/default.nix diff --git a/pkgs/development/python-modules/pyskyqhub/default.nix b/pkgs/development/python-modules/pyskyqhub/default.nix new file mode 100644 index 000000000000..1f3ad1874621 --- /dev/null +++ b/pkgs/development/python-modules/pyskyqhub/default.nix @@ -0,0 +1,39 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pyskyqhub"; + version = "0.1.4"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "RogerSelwyn"; + repo = "skyq_hub"; + rev = version; + sha256 = "EVkTvynMPmCr7DPuDqfpMvVPCvpPpJHfqsNjD3tn8zg="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Tests require phyiscal hardware + doCheck = false; + + pythonImportsCheck = [ + "pyskyqhub" + ]; + + meta = with lib; { + description = "Python module for accessing SkyQ Hub"; + homepage = "https://github.com/RogerSelwyn/skyq_hub"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87b06b9eb148..987e19a1431d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5789,6 +5789,8 @@ in { pysiaalarm = callPackage ../development/python-modules/pysiaalarm { }; + pyskyqhub = callPackage ../development/python-modules/pyskyqhub { }; + pysyncthru = callPackage ../development/python-modules/pysyncthru { }; python-codon-tables = callPackage ../development/python-modules/python-codon-tables { }; From feceb9ce85cefeae19284959b6615b37f8b6ff29 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 Nov 2021 16:31:10 +0100 Subject: [PATCH 2/2] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index a84ad21775fc..072c105a4110 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -773,7 +773,7 @@ "sinch" = ps: with ps; [ ]; # missing inputs: clx-sdk-xms "siren" = ps: with ps; [ ]; "sisyphus" = ps: with ps; [ ]; # missing inputs: sisyphus-control - "sky_hub" = ps: with ps; [ ]; # missing inputs: pyskyqhub + "sky_hub" = ps: with ps; [ pyskyqhub ]; "skybeacon" = ps: with ps; [ pygatt ]; "skybell" = ps: with ps; [ skybellpy ]; "slack" = ps: with ps; [ slackclient ];