1{ lib 2, buildPythonPackage 3, marisa-trie 4, pythonOlder 5, fetchPypi 6, nose 7}: 8 9buildPythonPackage rec { 10 pname = "langcodes"; 11 version = "3.2.1"; 12 disabled = pythonOlder "3.3"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "779a6da5036f87b6b56c180b2782ab111ddd6aa9157670a9b918402b0e07cd93"; 17 }; 18 19 propagatedBuildInputs = [ marisa-trie ]; 20 21 checkInputs = [ nose ]; 22 23 checkPhase = '' 24 nosetests 25 ''; 26 27 meta = with lib; { 28 description = "A toolkit for working with and comparing the standardized codes for languages, such as en for English or es for Spanish"; 29 homepage = "https://github.com/LuminosoInsight/langcodes"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ ixxie ]; 32 }; 33}