1{ lib
2, buildPythonPackage
3, marisa-trie
4, pythonOlder
5, fetchPypi
6, nose
7}:
8
9buildPythonPackage rec {
10 pname = "langcodes";
11 version = "2.0.0";
12 disabled = pythonOlder "3.3";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "0xszgmydymzhb0dhx5qvdn3x5z477ld0paw17lwwhlrxffkq5jxz";
17 };
18
19 propagatedBuildInputs = [ marisa-trie ];
20
21 checkInputs = [ nose ];
22
23 checkPhase = ''
24 nosetests
25 '';
26
27 meta = with lib; {
28 description = "A toolkit for working with and comparing the standardized codes for languages, such as ‘en’ for English or ‘es’ for Spanish";
29 homepage = "https://github.com/LuminosoInsight/langcodes";
30 license = licenses.mit;
31 maintainers = with maintainers; [ ixxie ];
32 };
33}