diff --git a/pkgs/development/python-modules/homekit-audio-proxy/default.nix b/pkgs/development/python-modules/homekit-audio-proxy/default.nix new file mode 100644 index 000000000000..412e2005d446 --- /dev/null +++ b/pkgs/development/python-modules/homekit-audio-proxy/default.nix @@ -0,0 +1,47 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + cryptography, + pytest-asyncio, + pytest-cov-stub, + pytest-timeout, + pytestCheckHook, + sybil, +}: + +buildPythonPackage (finalAttrs: { + pname = "homekit-audio-proxy"; + version = "1.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "bdraco"; + repo = "homekit-audio-proxy"; + tag = "v${finalAttrs.version}"; + hash = "sha256-9vC6atYdHvJ/Pkq8n4Amh557GRWLvPofhgnfQJPSBx0="; + }; + + build-system = [ setuptools ]; + + dependencies = [ cryptography ]; + + nativeCheckInputs = [ + pytest-asyncio + pytest-cov-stub + pytest-timeout + pytestCheckHook + sybil + ]; + + pythonImportsCheck = [ "homekit_audio_proxy" ]; + + meta = { + description = "SRTP audio proxy for HomeKit camera streaming"; + homepage = "https://github.com/bdraco/homekit-audio-proxy"; + changelog = "https://github.com/bdraco/homekit-audio-proxy/blob/main/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 38ce2a96e8ba..940d94018288 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2528,11 +2528,12 @@ fnv-hash-fast ha-ffmpeg hap-python + homekit-audio-proxy ifaddr pyqrcode pyturbojpeg zeroconf - ]; # missing inputs: homekit-audio-proxy + ]; "homekit_controller" = ps: with ps; [ aioesphomeapi @@ -7743,6 +7744,7 @@ "homeassistant_sky_connect" "homeassistant_yellow" "homee" + "homekit" "homekit_controller" "homematic" "homematicip_cloud" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dc6568ece2b0..7705080ec7cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7112,6 +7112,8 @@ self: super: with self; { homeconnect = callPackage ../development/python-modules/homeconnect { }; + homekit-audio-proxy = callPackage ../development/python-modules/homekit-audio-proxy { }; + homelink-integration-api = callPackage ../development/python-modules/homelink-integration-api { }; homematicip = callPackage ../development/python-modules/homematicip { };