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/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index abe1d6da9780..0e43d9acf338 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 ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6058fefb0961..cf60466bd918 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5815,6 +5815,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 { };