Files
nixpkgs/pkgs/development/python-modules/piper-phonemize/default.nix
T
Martin Weinelt 5cb66f8889 python313Packages.piper-phonemize: fix aarch64-linux build
While in the sandbox calls into onnxruntime lead to a coredump.
2025-05-17 11:52:32 +02:00

37 lines
776 B
Nix

{
lib,
stdenv,
buildPythonPackage,
onnxruntime-native,
piper-phonemize-native,
pybind11,
setuptools,
}:
buildPythonPackage {
inherit (piper-phonemize-native) pname version src;
format = "pyproject";
nativeBuildInputs = [
pybind11
setuptools
];
buildInputs = [
onnxruntime-native
piper-phonemize-native
piper-phonemize-native.espeak-ng
];
# coredump in onnxruntime::logging::Logger& onnxruntime::logging::LoggingManager::DefaultLogger()
pythonImportsCheck = lib.optionals stdenv.hostPlatform.isx86 [ "piper_phonemize" ];
# no tests
doCheck = false;
meta = {
description = "Phonemization libary used by Piper text to speech system";
inherit (piper-phonemize-native.meta) homepage license maintainers;
};
}