mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +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
|
{ 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 = [
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user