9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
33 lines
744 B
Nix
33 lines
744 B
Nix
{ lib
|
||
, buildPythonPackage
|
||
, marisa-trie
|
||
, pythonOlder
|
||
, fetchPypi
|
||
, nose
|
||
}:
|
||
|
||
buildPythonPackage rec {
|
||
pname = "langcodes";
|
||
version = "3.1.0";
|
||
disabled = pythonOlder "3.3";
|
||
|
||
src = fetchPypi {
|
||
inherit pname version;
|
||
sha256 = "1ccd37e3a68760d29ec3b17f5962cd1d8f242f4d9705ad1601c5cb7fab48199c";
|
||
};
|
||
|
||
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";
|
||
homepage = "https://github.com/LuminosoInsight/langcodes";
|
||
license = licenses.mit;
|
||
maintainers = with maintainers; [ ixxie ];
|
||
};
|
||
}
|