2018-03-25 20:33:53 +02:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, marisa-trie
|
|
|
|
|
, pythonOlder
|
|
|
|
|
, fetchPypi
|
|
|
|
|
, nose
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "langcodes";
|
2020-10-16 14:30:59 +02:00
|
|
|
|
version = "2.1.0";
|
2020-05-03 20:09:54 +02:00
|
|
|
|
disabled = pythonOlder "3.3";
|
2018-03-25 20:33:53 +02:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2020-10-16 14:30:59 +02:00
|
|
|
|
sha256 = "75bcaca8825e1a321965b136815dee53083c63314975e024ad0ccff8545e681f";
|
2018-03-25 20:33:53 +02: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 03:11:51 +02:00
|
|
|
|
homepage = "https://github.com/LuminosoInsight/langcodes";
|
2018-03-25 20:33:53 +02:00
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ ixxie ];
|
|
|
|
|
};
|
|
|
|
|
}
|