python3Packages.webrtcvad: modernize

This commit is contained in:
Harinn
2026-06-15 23:13:44 +07:00
parent c10d707d4e
commit 36159b76f7
@@ -5,14 +5,16 @@
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "webrtcvad";
version = "2.0.10";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit pname version;
sha256 = "f1bed2fb25b63fb7b1a55d64090c993c9c9167b28485ae0bcdd81cf6ede96aea";
inherit (finalAttrs) pname version;
hash = "sha256-8b7S+yW2P7expV1kCQyZPJyRZ7KEha4Lzdgc9u3pauo=";
};
build-system = [ setuptools ];
@@ -20,10 +22,12 @@ buildPythonPackage rec {
# required WAV files for testing are not included in the tarball
doCheck = false;
pythonImportsCheck = [ "webrtcvad" ];
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 ];
};
}
})