ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / langcodes / default.nix
blob72a80298c5cd9763a157cca2ac0cea769ac088ef
1 { lib
2 , buildPythonPackage
3 , marisa-trie
4 , pythonOlder
5 , fetchPypi
6 , poetry-core
7 , pytestCheckHook
8 , language-data
9 , setuptools
12 buildPythonPackage rec {
13   pname = "langcodes";
14   version = "3.3.0";
15   format = "pyproject";
17   disabled = pythonOlder "3.6";
19   src = fetchPypi {
20     inherit pname version;
21     sha256 = "794d07d5a28781231ac335a1561b8442f8648ca07cd518310aeb45d6f0807ef6";
22   };
24   nativeBuildInputs = [
25     poetry-core
26   ];
28   propagatedBuildInputs = [
29     language-data
30     marisa-trie
31     setuptools # pkg_resources import in language_data/util.py
32   ];
34   checkInputs = [
35     pytestCheckHook
36   ];
38   disabledTests = [
39     # AssertionError: assert 'Unknown language [aqk]' == 'Aninka'
40     "test_updated_iana"
41   ];
43   pythonImportsCheck = [
44     "langcodes"
45   ];
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   };