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