diff --git a/pkgs/development/python-modules/romy/default.nix b/pkgs/development/python-modules/romy/default.nix new file mode 100644 index 000000000000..9492bab6ce0e --- /dev/null +++ b/pkgs/development/python-modules/romy/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, setuptools +, pythonOlder +, aiohttp +}: + +buildPythonPackage rec { + pname = "romy"; + version = "0.0.9"; + pyproject = true; + + disabled = pythonOlder "3.11"; + + src = fetchFromGitHub { + owner = "xeniter"; + repo = "romy"; + rev = "refs/tags/${version}"; + hash = "sha256-r7g8DE8eBFHkMHzGfNlYi+XxrRIvH8IDxGOSEiJKKqM="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + aiohttp + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "romy" + ]; + + meta = with lib; { + description = "Library to control Wi-Fi enabled ROMY vacuum cleaners"; + homepage = "https://github.com/xeniter/romy"; + changelog = "https://github.com/xeniter/romy/releases/tag/${version}"; + license = licenses.agpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index ebed5dab1989..ea09b5b8bf6a 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4193,7 +4193,8 @@ rokuecp ]; "romy" = ps: with ps; [ - ]; # missing inputs: romy + romy + ]; "roomba" = ps: with ps; [ roombapy ]; @@ -6424,6 +6425,7 @@ "rmvtransport" "roborock" "roku" + "romy" "roomba" "roon" "rpi_power" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4aae7ababe9e..4b0ef8ce9fa4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13156,6 +13156,8 @@ self: super: with self; { roman = callPackage ../development/python-modules/roman { }; + romy = callPackage ../development/python-modules/romy { }; + roombapy = callPackage ../development/python-modules/roombapy { }; roonapi = callPackage ../development/python-modules/roonapi { };