2018-03-25 19:33:53 +01:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, marisa-trie
|
|
|
|
|
, pythonOlder
|
|
|
|
|
, fetchPypi
|
|
|
|
|
, nose
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "langcodes";
|
|
|
|
|
version = "1.4.1";
|
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
|
|
|
|
sha256 = "1axdiva2qglsjmnx2ak7i6hm0yhp6kbc4lcsgn8ckwy0nq1z3kr2";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ marisa-trie ];
|
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
|
nosetests
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "A toolkit for working with and comparing the standardized codes for languages, such as ‘en’ for English or ‘es’ for Spanish";
|
2018-06-30 01:18:27 +01:00
|
|
|
|
homepage = https://github.com/LuminosoInsight/langcodes;
|
2018-03-25 19:33:53 +01:00
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
|
};
|
|
|
|
|
}
|