159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
72 lines
1.2 KiB
Nix
72 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
setuptools-scm,
|
|
lxml,
|
|
wcwidth,
|
|
pytestCheckHook,
|
|
iniparse,
|
|
vobject,
|
|
mistletoe,
|
|
phply,
|
|
pyparsing,
|
|
ruamel-yaml,
|
|
cheroot,
|
|
fluent-syntax,
|
|
aeidon,
|
|
charset-normalizer,
|
|
syrupy,
|
|
gettext,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "translate-toolkit";
|
|
version = "3.13.2";
|
|
|
|
pyproject = true;
|
|
build-system = [ setuptools-scm ];
|
|
|
|
src = fetchPypi {
|
|
pname = "translate_toolkit";
|
|
inherit version;
|
|
hash = "sha256-95zIAelFSNK5+f1GY8DUgHPDQBS5K+9ULjXaSaa0wWM=";
|
|
};
|
|
|
|
dependencies = [
|
|
lxml
|
|
wcwidth
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
iniparse
|
|
vobject
|
|
mistletoe
|
|
phply
|
|
pyparsing
|
|
ruamel-yaml
|
|
cheroot
|
|
fluent-syntax
|
|
aeidon
|
|
charset-normalizer
|
|
syrupy
|
|
gettext
|
|
];
|
|
|
|
disabledTests = [
|
|
# Probably breaks because of nix sandbox
|
|
"test_timezones"
|
|
# Requires network
|
|
"test_xliff_conformance"
|
|
];
|
|
|
|
pythonImportsCheck = [ "translate" ];
|
|
|
|
meta = with lib; {
|
|
description = "Useful localization tools for building localization & translation systems";
|
|
homepage = "https://toolkit.translatehouse.org/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ erictapen ];
|
|
};
|
|
}
|