42 lines
844 B
Nix
42 lines
844 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
pybind11,
|
|
setuptools,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymicro-vad";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rhasspy";
|
|
repo = "pymicro-vad";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-wpsUy+f4eSGlq6L2FOtnA0qJgMh5ZdfiH31aaU61cVw=";
|
|
};
|
|
|
|
build-system = [
|
|
pybind11
|
|
setuptools
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "pymicro_vad" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/rhasspy/pymicro-vad/releases/tag/${version}";
|
|
description = "Self-contained voice activity detector";
|
|
homepage = "https://github.com/rhasspy/pymicro-vad";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|