Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 72 lines 1.2 kB view raw
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 setuptools-scm, 6 lxml, 7 wcwidth, 8 pytestCheckHook, 9 iniparse, 10 vobject, 11 mistletoe, 12 phply, 13 pyparsing, 14 ruamel-yaml, 15 cheroot, 16 fluent-syntax, 17 aeidon, 18 charset-normalizer, 19 syrupy, 20 gettext, 21}: 22 23buildPythonPackage rec { 24 pname = "translate-toolkit"; 25 version = "3.14.1"; 26 27 pyproject = true; 28 build-system = [ setuptools-scm ]; 29 30 src = fetchPypi { 31 pname = "translate_toolkit"; 32 inherit version; 33 hash = "sha256-IUjEN8Up1Or4nFo71WkDduq+6Xw8ObfUgkABp88zPoY="; 34 }; 35 36 dependencies = [ 37 lxml 38 wcwidth 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 iniparse 44 vobject 45 mistletoe 46 phply 47 pyparsing 48 ruamel-yaml 49 cheroot 50 fluent-syntax 51 aeidon 52 charset-normalizer 53 syrupy 54 gettext 55 ]; 56 57 disabledTests = [ 58 # Probably breaks because of nix sandbox 59 "test_timezones" 60 # Requires network 61 "test_xliff_conformance" 62 ]; 63 64 pythonImportsCheck = [ "translate" ]; 65 66 meta = with lib; { 67 description = "Useful localization tools for building localization & translation systems"; 68 homepage = "https://toolkit.translatehouse.org/"; 69 license = licenses.gpl2Plus; 70 maintainers = with maintainers; [ erictapen ]; 71 }; 72}