phonemizer: fix build (#354946)

This commit is contained in:
Weijia Wang 2024-11-11 00:56:20 +01:00 committed by GitHub
commit a0c28de3e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,22 +10,22 @@
dlinfo,
typing-extensions,
espeak-ng,
setuptools,
pytest,
}:
buildPythonPackage rec {
pname = "phonemizer";
version = "3.3.0";
format = "setuptools";
pyproject = true;
build-system = [ setuptools ];
src = fetchPypi {
inherit pname version;
hash = "sha256-Xgw4Ei7/4LMxok5nSv8laHTs4WnXCpzxEgM3tW+OPQw=";
};
postPatch = ''
sed -i '/pytest-runner/d' setup.py
'';
patches = [
(substituteAll {
src = ./backend-paths.patch;
@ -46,12 +46,12 @@ buildPythonPackage rec {
# so let's disable related tests.
doCheck = false;
meta = with lib; {
meta = {
homepage = "https://github.com/bootphon/phonemizer";
changelog = "https://github.com/bootphon/phonemizer/blob/v${version}/CHANGELOG.md";
description = "Simple text to phones converter for multiple languages";
mainProgram = "phonemize";
license = licenses.gpl3Plus;
maintainers = [ ];
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ bot-wxt1221 ];
};
}