nixos-configs/nixosModules/wyoming-plus/pkgs/openwakeword.nix
matt1432 c75cb0759d
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(wyoming): move to tflite dep instead of tensorflow
2024-12-15 17:14:49 -05:00

41 lines
757 B
Nix

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