1{ 2 lib, 3 buildPythonPackage, 4 marisa-trie, 5 pythonOlder, 6 fetchPypi, 7 poetry-core, 8 pytestCheckHook, 9 language-data, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "langcodes"; 15 version = "3.3.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "794d07d5a28781231ac335a1561b8442f8648ca07cd518310aeb45d6f0807ef6"; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 propagatedBuildInputs = [ 28 language-data 29 marisa-trie 30 setuptools # pkg_resources import in language_data/util.py 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 disabledTests = [ 36 # AssertionError: assert 'Unknown language [aqk]' == 'Aninka' 37 "test_updated_iana" 38 ]; 39 40 pythonImportsCheck = [ "langcodes" ]; 41 42 meta = with lib; { 43 description = "Python toolkit for working with and comparing the standardized codes for languages"; 44 homepage = "https://github.com/LuminosoInsight/langcodes"; 45 license = licenses.mit; 46 }; 47}