mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Merge pull request #164839 from r-ryantm/auto-update/gruut
This commit is contained in:
commit
4a4fd5efb3
@ -1,32 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pkgs
|
||||
, espeak
|
||||
, numpy
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gruut-ipa";
|
||||
version = "0.12.0";
|
||||
version = "0.13.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rhasspy";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-6pMdBKbp++/5321rc8A2euOSXZCHzHg+wmaEaMZ0egw=";
|
||||
sha256 = "sha256-Q2UKELoG8OaAPxIrZNCpXgeWZ2fCzb3g3SOVzCm/gg0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs bin/speak-ipa
|
||||
patchShebangs bin/*
|
||||
substituteInPlace bin/speak-ipa \
|
||||
--replace '${"\${src_dir}:"}' "$out/lib/${python.libPrefix}/site-packages:" \
|
||||
--replace "do espeak" "do ${pkgs.espeak}/bin/espeak"
|
||||
--replace "do espeak" "do ${espeak}/bin/espeak"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -m0755 bin/speak-ipa $out/bin/speak-ipa
|
||||
'';
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
@ -36,14 +36,14 @@ let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "gruut";
|
||||
version = "2.2.0";
|
||||
version = "2.2.3";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rhasspy";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-9vj3x2IjTso8ksN1cqe5frwg0Y3GhOB6bPWvaBSBOf8=";
|
||||
sha256 = "sha256-B5fPUW4YaMzDDXxncfrWwxGdUizuaxnPImNMf1ZZJ/I=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -2,6 +2,7 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pythonAtLeast
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -32,5 +33,6 @@ buildPythonPackage rec {
|
||||
homepage = "https://github.com/scrapinghub/python-crfsuite";
|
||||
license = licenses.mit;
|
||||
maintainers = teams.tts.members;
|
||||
broken = pythonAtLeast "3.10"; # https://github.com/scrapinghub/python-crfsuite/issues/130
|
||||
};
|
||||
}
|
||||
|
@ -3601,7 +3601,9 @@ in {
|
||||
|
||||
gruut = callPackage ../development/python-modules/gruut { };
|
||||
|
||||
gruut-ipa = callPackage ../development/python-modules/gruut-ipa { };
|
||||
gruut-ipa = callPackage ../development/python-modules/gruut-ipa {
|
||||
inherit (pkgs) espeak;
|
||||
};
|
||||
|
||||
gsd = callPackage ../development/python-modules/gsd { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user