python312Packages.gruut: 2.3.4 -> 2.4.0

https://github.com/rhasspy/gruut/compare/refs/tags/v2.3.4...v2.4.0
This commit is contained in:
Martin Weinelt 2024-07-06 13:51:24 +02:00
parent 7220592b15
commit 220f48a424
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -9,12 +9,17 @@
# dependencies
babel,
gruut-ipa,
dateparser,
gruut-ipa,
jsonlines,
num2words,
python-crfsuite,
networkx,
num2words,
numpy,
python-crfsuite,
# optional dependencies
pydub,
rapidfuzz,
# checks
glibcLocales,
@ -24,6 +29,7 @@
let
langPkgs = [
"ar"
"ca"
"cs"
"de"
"en"
@ -41,46 +47,53 @@ let
in
buildPythonPackage rec {
pname = "gruut";
version = "2.3.4";
version = "2.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "rhasspy";
repo = "gruut";
rev = "refs/tags/v${version}";
hash = "sha256-DD7gnvH9T2R6E19+exWE7Si+XEpfh0Iy5FYbycjgzgM=";
hash = "sha256-iwde6elsAbICZ+Rc7CPgcZTOux1hweVZc/gf4K+hP9M=";
};
pythonRelaxDeps = true;
build-system = [ setuptools ];
dependencies =
[
babel
gruut-ipa
jsonlines
num2words
python-crfsuite
dateparser
networkx
]
++ (map (
lang:
callPackage ./language-pack.nix {
dependencies = [
babel
dateparser
gruut-ipa
jsonlines
networkx
num2words
numpy
python-crfsuite
] ++ optional-dependencies.en;
optional-dependencies =
{
train = [
pydub
rapidfuzz
];
}
// lib.genAttrs langPkgs (lang: [
(callPackage ./language-pack.nix {
inherit
lang
version
src
build-system
;
}
) langPkgs);
})
]);
nativeCheckInputs = [
glibcLocales
pytestCheckHook
];
] ++ lib.flatten (lib.attrValues optional-dependencies);
disabledTests = [
# https://github.com/rhasspy/gruut/issues/25
@ -89,7 +102,6 @@ buildPythonPackage rec {
# requires mishkal library
"test_fa"
"test_ar"
"test_lb"
];
preCheck = ''