2023-06-09 15:46:46 +00:00
|
|
|
{ lib
|
2023-10-30 23:37:41 +00:00
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
2023-06-09 15:46:46 +00:00
|
|
|
}:
|
|
|
|
|
2023-10-30 23:37:41 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2023-06-09 15:46:46 +00:00
|
|
|
pname = "wyoming-piper";
|
2023-10-30 23:37:41 +00:00
|
|
|
version = "1.4.0";
|
|
|
|
pyproject = true;
|
2023-06-09 15:46:46 +00:00
|
|
|
|
2023-10-30 23:37:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhasspy";
|
|
|
|
repo = "wyoming-piper";
|
|
|
|
# https://github.com/rhasspy/wyoming-piper/issues/3
|
|
|
|
rev = "560927437c72eca4d334ca503d15863f0b42980d";
|
|
|
|
hash = "sha256-Q4S96zs856zXVAGo4mB466an60naHiS2S/qxYxPE4sI=";
|
2023-06-09 15:46:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2023-10-30 23:37:41 +00:00
|
|
|
(fetchpatch {
|
|
|
|
# add console script
|
|
|
|
url = "https://github.com/rhasspy/wyoming-piper/commit/4c27fbd067fd543adede4626fc5868a3f2458734.patch";
|
|
|
|
hash = "sha256-YPjDjeY9RLsgCtbBZoNgPyQTv3rbCJGcqTNSSwiqqEE=";
|
|
|
|
})
|
2023-06-09 15:46:46 +00:00
|
|
|
];
|
|
|
|
|
2023-10-30 23:37:41 +00:00
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
setuptools
|
2023-11-29 11:12:14 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"wyoming"
|
2023-10-30 23:37:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2023-06-09 15:46:46 +00:00
|
|
|
wyoming
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wyoming_piper"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-30 23:37:41 +00:00
|
|
|
changelog = "https://github.com/rhasspy/wyoming-openwakeword/v${version}/master/CHANGELOG.md";
|
2023-06-09 15:46:46 +00:00
|
|
|
description = "Wyoming Server for Piper";
|
2023-10-30 23:37:41 +00:00
|
|
|
homepage = "https://github.com/rhasspy/wyoming-openwakeword";
|
2023-06-09 15:46:46 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|