2018-03-25 19:33:53 +01:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, marisa-trie
|
|
|
|
|
, pythonOlder
|
|
|
|
|
, fetchPypi
|
|
|
|
|
, nose
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "langcodes";
|
2021-03-24 09:28:16 +00:00
|
|
|
|
version = "3.1.0";
|
2020-05-03 19:09:54 +01:00
|
|
|
|
disabled = pythonOlder "3.3";
|
2018-03-25 19:33:53 +01:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:16 +00:00
|
|
|
|
sha256 = "1ccd37e3a68760d29ec3b17f5962cd1d8f242f4d9705ad1601c5cb7fab48199c";
|
2018-03-25 19:33:53 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ marisa-trie ];
|
|
|
|
|
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
|
homepage = "https://github.com/LuminosoInsight/langcodes";
|
2018-03-25 19:33:53 +01:00
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
|
};
|
|
|
|
|
}
|