a19cd4ffb1
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
44 lines
986 B
Nix
44 lines
986 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
espeak,
|
|
numpy,
|
|
python,
|
|
unittestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gruut-ipa";
|
|
version = "0.13.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rhasspy";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-Q2UKELoG8OaAPxIrZNCpXgeWZ2fCzb3g3SOVzCm/gg0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs bin/*
|
|
substituteInPlace bin/speak-ipa \
|
|
--replace '${"\${src_dir}:"}' "$out/${python.sitePackages}:" \
|
|
--replace "do espeak" "do ${espeak}/bin/espeak"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "gruut_ipa" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library for manipulating pronunciations using the International Phonetic Alphabet (IPA)";
|
|
mainProgram = "gruut-ipa";
|
|
homepage = "https://github.com/rhasspy/gruut-ipa";
|
|
license = licenses.mit;
|
|
maintainers = teams.tts.members;
|
|
};
|
|
}
|