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/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d08f34e023de..956adc01bd0d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7106,6 +7106,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 { };