diff --git a/pkgs/development/python-modules/russound/default.nix b/pkgs/development/python-modules/russound/default.nix new file mode 100644 index 000000000000..1154fbcc19fa --- /dev/null +++ b/pkgs/development/python-modules/russound/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + requests, +}: + +buildPythonPackage rec { + pname = "russound"; + version = "0.1.8"; + pyproject = true; + + src = fetchFromGitHub { + owner = "laf"; + repo = "russound"; + tag = version; + hash = "sha256-iAhHOZwgaLhgkN/oW3Oz9bazyoqlP8GIsaXpqyXs3/Y="; + }; + + build-system = [ setuptools ]; + + dependencies = [ requests ]; + + # Tests require actual hardware to connect to + doCheck = false; + + pythonImportsCheck = [ "russound" ]; + + meta = { + description = "Python API for select Russound RNET commands to provide Russound support within home-assistant.io"; + homepage = "https://github.com/laf/russound"; + changelog = "https://github.com/laf/russound/releases/tag/${version}"; + license = lib.licenses.gpl3Only; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 11aab1d13d5a..524f74c597f8 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -5046,7 +5046,8 @@ ]; "russound_rnet" = ps: with ps; [ - ]; # missing inputs: russound + russound + ]; "ruuvi_gateway" = ps: with ps; [ aioruuvigateway diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 736a0186fa96..b9b333623d84 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16053,6 +16053,8 @@ self: super: with self; { runstats = callPackage ../development/python-modules/runstats { }; + russound = callPackage ../development/python-modules/russound { }; + rustworkx = callPackage ../development/python-modules/rustworkx { }; ruuvitag-ble = callPackage ../development/python-modules/ruuvitag-ble { };