nixpkgs/pkgs/tools/audio/wyoming/piper.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
967 B
Nix
Raw Normal View History

{ lib
, python3Packages
, fetchFromGitHub
, fetchpatch
}:
python3Packages.buildPythonApplication rec {
pname = "wyoming-piper";
2024-02-20 02:58:52 +00:00
version = "1.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "rhasspy";
repo = "wyoming-piper";
2024-02-20 02:58:52 +00:00
rev = "v${version}";
hash = "sha256-aI1CWtSpSPX1aK4UR/lsCQZQwNs7qOLKfatlSomJx1Q=";
};
nativeBuildInputs = with python3Packages; [
setuptools
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"wyoming"
];
propagatedBuildInputs = with python3Packages; [
wyoming
];
pythonImportsCheck = [
"wyoming_piper"
];
doCheck = false;
meta = with lib; {
changelog = "https://github.com/rhasspy/wyoming-openwakeword/v${version}/master/CHANGELOG.md";
description = "Wyoming Server for Piper";
mainProgram = "wyoming-piper";
homepage = "https://github.com/rhasspy/wyoming-openwakeword";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}