Files
nixpkgs/pkgs/development/python-modules/langcodes/default.nix
T

34 lines
732 B
Nix
Raw Normal View History

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