diff --git a/pkgs/development/python-modules/hkavr/default.nix b/pkgs/development/python-modules/hkavr/default.nix new file mode 100644 index 00000000000..851150ea1dd --- /dev/null +++ b/pkgs/development/python-modules/hkavr/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "hkavr"; + version = "0.0.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-wa0yS0KPdrQUuxxViweESD6Itn2rFlTwwrPQ0COWIPc="; + }; + + propagatedBuildInputs = [ + requests + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "hkavr" + ]; + + meta = with lib; { + description = "Library for interacting with Harman Kardon AVR controllers"; + homepage = "https://github.com/Devqon/hkavr"; + license = with 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 6d38e128e06..0fc5aaf15bd 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1055,7 +1055,8 @@ hangups ]; "harman_kardon_avr" = ps: with ps; [ - ]; # missing inputs: hkavr + hkavr + ]; "harmony" = ps: with ps; [ aioharmony ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 825a7c94470..62ef3207016 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3821,6 +3821,8 @@ in { hjson = callPackage ../development/python-modules/hjson { }; + hkavr = callPackage ../development/python-modules/hkavr { }; + hkdf = callPackage ../development/python-modules/hkdf { }; hlk-sw16 = callPackage ../development/python-modules/hlk-sw16 { };