diff --git a/pkgs/development/python-modules/roombapy/default.nix b/pkgs/development/python-modules/roombapy/default.nix new file mode 100644 index 000000000000..9c438bde7562 --- /dev/null +++ b/pkgs/development/python-modules/roombapy/default.nix @@ -0,0 +1,37 @@ +{ buildPythonPackage +, fetchFromGitHub +, hbmqtt +, lib +, paho-mqtt +, poetry +, pytest-asyncio +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "roombapy"; + version = "1.6.2-1"; + + src = fetchFromGitHub { + owner = "pschmitt"; + repo = "roombapy"; + rev = version; + sha256 = "14k7bys479xwpa4alpdwphzmxm3x8kc48nfqnshn1wj94vyxc425"; + }; + + format = "pyproject"; + + nativeBuildInputs = [ poetry ]; + propagatedBuildInputs = [ paho-mqtt ]; + + checkInputs = [ hbmqtt pytest-asyncio pytestCheckHook ]; + pytestFlagsArray = [ "tests/" "--ignore=tests/test_discovery.py" ]; + pythonImportsCheck = [ "roombapy" ]; + + meta = with lib; { + homepage = "https://github.com/pschmitt/roombapy"; + description = "Python program and library to control Wi-Fi enabled iRobot Roombas"; + maintainers = with maintainers; [ justinas ]; + license = licenses.mit; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b9a99fa6d271..4cf5b0a56347 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -682,7 +682,7 @@ "rmvtransport" = ps: with ps; [ PyRMVtransport ]; "rocketchat" = ps: with ps; [ ]; # missing inputs: rocketchat-API "roku" = ps: with ps; [ ]; # missing inputs: rokuecp - "roomba" = ps: with ps; [ ]; # missing inputs: roombapy + "roomba" = ps: with ps; [ roombapy ]; "roon" = ps: with ps; [ ]; # missing inputs: roonapi "route53" = ps: with ps; [ boto3 ]; "rova" = ps: with ps; [ ]; # missing inputs: rova diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 073e92cc884a..314c952ee346 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6730,6 +6730,8 @@ in { roman = callPackage ../development/python-modules/roman { }; + roombapy = callPackage ../development/python-modules/roombapy { }; + rope = callPackage ../development/python-modules/rope { }; ROPGadget = callPackage ../development/python-modules/ROPGadget { };