Skip to content

Commit a0c28de

Browse files
authored
phonemizer: fix build (#354946)
2 parents 802cb21 + fc94ad9 commit a0c28de

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkgs/development/python-modules/phonemizer/default.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010
dlinfo,
1111
typing-extensions,
1212
espeak-ng,
13+
setuptools,
14+
pytest,
1315
}:
1416

1517
buildPythonPackage rec {
1618
pname = "phonemizer";
1719
version = "3.3.0";
18-
format = "setuptools";
20+
pyproject = true;
21+
22+
build-system = [ setuptools ];
1923

2024
src = fetchPypi {
2125
inherit pname version;
2226
hash = "sha256-Xgw4Ei7/4LMxok5nSv8laHTs4WnXCpzxEgM3tW+OPQw=";
2327
};
2428

25-
postPatch = ''
26-
sed -i '/pytest-runner/d' setup.py
27-
'';
28-
2929
patches = [
3030
(substituteAll {
3131
src = ./backend-paths.patch;
@@ -46,12 +46,12 @@ buildPythonPackage rec {
4646
# so let's disable related tests.
4747
doCheck = false;
4848

49-
meta = with lib; {
49+
meta = {
5050
homepage = "https://github.com/bootphon/phonemizer";
5151
changelog = "https://github.com/bootphon/phonemizer/blob/v${version}/CHANGELOG.md";
5252
description = "Simple text to phones converter for multiple languages";
5353
mainProgram = "phonemize";
54-
license = licenses.gpl3Plus;
55-
maintainers = [ ];
54+
license = lib.licenses.gpl3Plus;
55+
maintainers = with lib.maintainers; [ bot-wxt1221 ];
5656
};
5757
}

0 commit comments

Comments
 (0)