depot/third_party/nixpkgs/pkgs/tools/audio/wyoming/openwakeword.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

48 lines
1.1 KiB
Nix

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