0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

Merge pull request #325020 from mweinelt/gruut-2.4.0

python312Packages.gruut: 2.3.4 -> 2.4.0
This commit is contained in:
Nick Cao 2024-07-07 09:32:23 -04:00 committed by GitHub
commit df70959608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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