diff --git a/pkgs/development/python-modules/pysensibo/default.nix b/pkgs/development/python-modules/pysensibo/default.nix new file mode 100644 index 000000000000..a4973efe5049 --- /dev/null +++ b/pkgs/development/python-modules/pysensibo/default.nix @@ -0,0 +1,39 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pysensibo"; + version = "1.0.12"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "andrey-git"; + repo = pname; + rev = version; + hash = "sha256-gXdyVEBcYCUOo8PHzsJLkjtnX1B1iRS/DAxdQDU3HaY="; + }; + + propagatedBuildInputs = [ + aiohttp + ]; + + # no tests implemented + doCheck = false; + + pythonImportsCheck = [ + "pysensibo" + ]; + + meta = with lib; { + description = "Module for interacting with Sensibo"; + homepage = "https://github.com/andrey-git/pysensibo"; + license = 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 ca2a0488e45c..18a9628d7ff4 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2292,7 +2292,8 @@ aiosenseme ]; "sensibo" = ps: with ps; [ - ]; # missing inputs: pysensibo + pysensibo + ]; "sensor" = ps: with ps; [ fnvhash lru-dict @@ -3569,6 +3570,7 @@ "select" "sense" "senseme" + "sensibo" "sensor" "sentry" "seventeentrack" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 17416c8a3be0..a477ed893645 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7747,6 +7747,8 @@ in { pysendfile = callPackage ../development/python-modules/pysendfile { }; + pysensibo = callPackage ../development/python-modules/pysensibo { }; + pysensors = callPackage ../development/python-modules/pysensors { }; pyserial-asyncio = callPackage ../development/python-modules/pyserial-asyncio { };