nixos-configs/nixosModules/wyoming-plus/pkgs/openwakeword.nix

42 lines
757 B
Nix
Raw Normal View History

2024-09-12 18:21:31 -04:00
{
fetchFromGitHub,
python3Packages,
speexdsp-ns,
tflite-runtime,
2024-09-12 18:21:31 -04:00
...
}: let
inherit (builtins) attrValues;
in
python3Packages.buildPythonApplication rec {
pname = "openwakeword";
version = "0.6.0";
pyproject = true;
2024-09-12 18:21:31 -04:00
src = fetchFromGitHub {
owner = "dscripka";
repo = "openWakeWord";
rev = "v${version}";
hash = "sha256-QsXV9REAHdP0Y0fVZuU+Gt9+gcPMB60bc3DOMDYuaDM=";
};
2024-09-12 18:21:31 -04:00
nativeBuildInputs = with python3Packages; [
setuptools
];
2024-09-12 18:21:31 -04:00
propagatedBuildInputs = attrValues {
inherit
(python3Packages)
onnxruntime
tqdm
scipy
scikit-learn
requests
;
2024-09-12 18:21:31 -04:00
inherit
speexdsp-ns
tflite-runtime
;
};
}