1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 pybind11, 8 setuptools, 9 10 # tests 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "pymicro-vad"; 16 version = "1.0.2"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "rhasspy"; 21 repo = "pymicro-vad"; 22 tag = version; 23 hash = "sha256-yKy/oD6nl2qZW64+aAHZRAEFextCXT6RpMfPThB8DXE="; 24 }; 25 26 build-system = [ 27 pybind11 28 setuptools 29 ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "pymicro_vad" ]; 34 35 meta = with lib; { 36 changelog = "https://github.com/rhasspy/pymicro-vad/releases/tag/${version}"; 37 description = "Self-contained voice activity detector"; 38 homepage = "https://github.com/rhasspy/pymicro-vad"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ hexa ]; 41 }; 42}