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