2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
pname = "wyoming-openwakeword";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.10.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhasspy";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "wyoming-openwakeword";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-5suYJ+Z6ofVAysoCdHi5b5K0JTYaqeFZ32Cm76wC5LU=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
setuptools
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"wyoming"
|
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
pythonRemoveDeps = [
|
|
|
|
"tflite-runtime-nightly"
|
2023-10-09 19:29:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2023-11-16 04:20:00 +00:00
|
|
|
tensorflow
|
2023-10-09 19:29:22 +00:00
|
|
|
wyoming
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wyoming_openwakeword"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/rhasspy/wyoming-openwakeword/blob/v${version}/CHANGELOG.md";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Open source voice assistant toolkit for many human languages";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/rhasspy/wyoming-openwakeword";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
mainProgram = "wyoming-openwakeword";
|
|
|
|
};
|
|
|
|
}
|