phonemizer: Use buildPythonPackage

and add a top-level attribute. The package is broken and needs an
updated patch, but that does not mean this change is wrong.
This commit is contained in:
Martin Weinelt 2022-10-02 17:02:32 +02:00
parent d889b1b298
commit cd016901b1
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{ lib { lib
, stdenv , stdenv
, substituteAll , substituteAll
, buildPythonApplication , buildPythonPackage
, fetchPypi , fetchPypi
, joblib , joblib
, segments , segments
@ -13,17 +13,18 @@
, pytest-cov , pytest-cov
}: }:
buildPythonApplication rec { buildPythonPackage rec {
pname = "phonemizer"; pname = "phonemizer";
version = "3.2.1"; version = "3.2.1";
format = "setuptools";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-Bo+F+FqKmtxjijeHrqyvcaU+R1eLEtdzwJdDNQDNiSs="; hash = "sha256-Bo+F+FqKmtxjijeHrqyvcaU+R1eLEtdzwJdDNQDNiSs=";
}; };
postPatch = '' postPatch = ''
sed -i -e '/\'pytest-runner\'/d setup.py sed -i '/pytest-runner/d setup.py
''; '';
patches = [ patches = [

View File

@ -33114,6 +33114,8 @@ with pkgs;
nux = callPackage ../tools/misc/nux { }; nux = callPackage ../tools/misc/nux { };
phonemizer = with python3Packages; toPythonApplication phonemizer;
tts = callPackage ../tools/audio/tts { }; tts = callPackage ../tools/audio/tts { };
### GAMES ### GAMES