Merge pull request #164839 from r-ryantm/auto-update/gruut

This commit is contained in:
Martin Weinelt 2022-03-20 04:26:20 +01:00 committed by GitHub
commit 4a4fd5efb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 11 deletions

View File

@ -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

View File

@ -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 = ''

View File

@ -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
};
}

View File

@ -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 { };