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