mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
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:
parent
d889b1b298
commit
cd016901b1
@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, substituteAll
|
||||
, buildPythonApplication
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, joblib
|
||||
, segments
|
||||
@ -13,17 +13,18 @@
|
||||
, pytest-cov
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
buildPythonPackage rec {
|
||||
pname = "phonemizer";
|
||||
version = "3.2.1";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-Bo+F+FqKmtxjijeHrqyvcaU+R1eLEtdzwJdDNQDNiSs=";
|
||||
hash = "sha256-Bo+F+FqKmtxjijeHrqyvcaU+R1eLEtdzwJdDNQDNiSs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/\'pytest-runner\'/d setup.py
|
||||
sed -i '/pytest-runner/d setup.py
|
||||
'';
|
||||
|
||||
patches = [
|
||||
|
@ -33114,6 +33114,8 @@ with pkgs;
|
||||
|
||||
nux = callPackage ../tools/misc/nux { };
|
||||
|
||||
phonemizer = with python3Packages; toPythonApplication phonemizer;
|
||||
|
||||
tts = callPackage ../tools/audio/tts { };
|
||||
|
||||
### GAMES
|
||||
|
Loading…
Reference in New Issue
Block a user