python3Packages.translate-toolkit: add all optional-dependencies

This commit is contained in:
Kerstin Humm
2026-04-18 16:24:47 +02:00
parent cd8f3c05dc
commit 6e1ada0d38
@@ -9,25 +9,26 @@
# dependencies
lxml,
unicode-segmentation-rs,
urllib3,
# optional-dependencies
tomlkit,
# tests
aeidon,
charset-normalizer,
cheroot,
fluent-syntax,
gettext,
vobject,
iniparse,
rapidfuzz,
mistletoe,
phply,
pyparsing,
pytestCheckHook,
pyenchant,
aeidon,
tomlkit,
ruamel-yaml,
syrupy,
vobject,
# tests
pytestCheckHook,
addBinToPathHook,
pytest-xdist,
gettext,
}:
buildPythonPackage (finalAttrs: {
@@ -47,36 +48,40 @@ buildPythonPackage (finalAttrs: {
dependencies = [
lxml
unicode-segmentation-rs
urllib3
];
optional-dependencies = {
chardet = [ charset-normalizer ];
fluent = [ fluent-syntax ];
ical = [ vobject ];
ini = [ iniparse ];
levenshtein = [ rapidfuzz ];
markdown = [ mistletoe ];
php = [ phply ];
rc = [ pyparsing ];
spellcheck = [ pyenchant ];
subtitles = [ aeidon ];
toml = [ tomlkit ];
yaml = [ ruamel-yaml ];
};
nativeCheckInputs = [
aeidon
charset-normalizer
cheroot
fluent-syntax
gettext
iniparse
mistletoe
phply
pyparsing
pytestCheckHook
ruamel-yaml
syrupy
tomlkit
vobject
];
addBinToPathHook
pytest-xdist
gettext
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
disabledTests = [
# Probably breaks because of nix sandbox
"test_timezones"
];
# Requires network
"test_xliff_conformance"
disabledTestPaths = [
# Require pytest-snapshot but there are no snapshots checked in
"tests/translate/tools/test_pocount.py"
"tests/translate/tools/test_junitmsgfmt.py"
];
pythonImportsCheck = [ "translate" ];