diff --git a/pkgs/development/python-modules/horimote/default.nix b/pkgs/development/python-modules/horimote/default.nix new file mode 100644 index 000000000000..17926647ab23 --- /dev/null +++ b/pkgs/development/python-modules/horimote/default.nix @@ -0,0 +1,34 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + setuptools, +}: + +buildPythonPackage rec { + pname = "horimote"; + version = "0.4.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "benleb"; + repo = "horimote"; + tag = "v${version}"; + hash = "sha256-rEtE0Z/PV/n9pz2mLbHeREv/sl4SexTSOq2yx4LDnAo="; + }; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "horimote" ]; + + meta = { + description = "Async API wrapper for Samsung's set-top boxes SMT-G7400 and SMT-G7401"; + homepage = "https://github.com/benleb/horimote"; + changelog = "https://github.com/benleb/horimote/releases/tag/v${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index c5e59ee629b5..61febf4e590e 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2429,7 +2429,8 @@ ]; "horizon" = ps: with ps; [ - ]; # missing inputs: horimote + horimote + ]; "hp_ilo" = ps: with ps; [ python-hpilo diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 18b19605e6bd..81da1eff1c47 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6660,6 +6660,8 @@ self: super: with self; { hopcroftkarp = callPackage ../development/python-modules/hopcroftkarp { }; + horimote = callPackage ../development/python-modules/horimote { }; + horizon-eda = callPackage ../development/python-modules/horizon-eda { inherit (pkgs) horizon-eda; }; housekeeping = callPackage ../development/python-modules/housekeeping { };