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