2024-09-12 18:21:31 -04:00
|
|
|
{
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3Packages,
|
|
|
|
speexdsp-ns,
|
2024-12-15 17:14:49 -05:00
|
|
|
tflite-runtime,
|
2024-09-12 18:21:31 -04:00
|
|
|
...
|
2024-12-15 17:14:49 -05: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
|
|
|
|
2024-12-15 17:14:49 -05:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dscripka";
|
|
|
|
repo = "openWakeWord";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-QsXV9REAHdP0Y0fVZuU+Gt9+gcPMB60bc3DOMDYuaDM=";
|
|
|
|
};
|
2024-09-12 18:21:31 -04:00
|
|
|
|
2024-12-15 17:14:49 -05:00
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
setuptools
|
|
|
|
];
|
2024-09-12 18:21:31 -04:00
|
|
|
|
2024-12-15 17:14:49 -05:00
|
|
|
propagatedBuildInputs = attrValues {
|
|
|
|
inherit
|
|
|
|
(python3Packages)
|
|
|
|
onnxruntime
|
|
|
|
tqdm
|
|
|
|
scipy
|
|
|
|
scikit-learn
|
|
|
|
requests
|
|
|
|
;
|
2024-09-12 18:21:31 -04:00
|
|
|
|
2024-12-15 17:14:49 -05:00
|
|
|
inherit
|
|
|
|
speexdsp-ns
|
|
|
|
tflite-runtime
|
|
|
|
;
|
|
|
|
};
|
|
|
|
}
|