nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 = "2.0.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "rhasspy";
21 repo = "pymicro-vad";
22 tag = "v${version}";
23 hash = "sha256-76/n9p+zulq8Uvqurbi9tNFkBXGchEftwqeFycY3NO0=";
24 };
25
26 build-system = [
27 pybind11
28 setuptools
29 ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "pymicro_vad" ];
34
35 meta = {
36 changelog = "https://github.com/rhasspy/pymicro-vad/releases/tag/${src.tag}";
37 description = "Self-contained voice activity detector";
38 homepage = "https://github.com/rhasspy/pymicro-vad";
39 license = lib.licenses.asl20;
40 maintainers = with lib.maintainers; [ hexa ];
41 };
42}