diff --git a/pkgs/development/python-modules/webrtcvad/default.nix b/pkgs/development/python-modules/webrtcvad/default.nix new file mode 100644 index 00000000000..7bd0f20bfa1 --- /dev/null +++ b/pkgs/development/python-modules/webrtcvad/default.nix @@ -0,0 +1,24 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "webrtcvad"; + version = "2.0.10"; + + src = fetchPypi { + inherit pname version; + sha256 = "f1bed2fb25b63fb7b1a55d64090c993c9c9167b28485ae0bcdd81cf6ede96aea"; + }; + + # required WAV files for testing are not included in the tarball + doCheck = false; + + meta = { + description = "Interface to the Google WebRTC Voice Activity Detector (VAD)"; + homepage = https://github.com/wiseman/py-webrtcvad; + license = with lib.licenses; [ mit ]; + maintainers = with lib.maintainers; [ prusnak ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f1c5dd87f46..d782de82e4d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6110,6 +6110,8 @@ in { fastapi = callPackage ../development/python-modules/fastapi { }; stringcase = callPackage ../development/python-modules/stringcase { }; + + webrtcvad = callPackage ../development/python-modules/webrtcvad { }; }); in fix' (extends overrides packages)