python3Packages.language-data: init at 1.0.1

This commit is contained in:
Fabian Affolter 2021-11-29 22:49:33 +01:00 committed by Jonathan Ringer
parent 59325220e5
commit f9ee9559d5
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, marisa-trie
, poetry-core
, pythonOlder
}:
buildPythonApplication rec {
pname = "language-data";
version = "1.0.1";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "rspeer";
repo = "language_data";
rev = "v${version}";
sha256 = "51TUVHXPHG6ofbnxI6+o5lrtr+QCIpGKu+OjDK3l7Mc=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
marisa-trie
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"language_data"
];
meta = with lib; {
description = "Supplement module for langcodes";
homepage = "https://github.com/rspeer/language_data";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -4269,6 +4269,8 @@ in {
langdetect = callPackage ../development/python-modules/langdetect { };
language-data = callPackage ../development/python-modules/language-data { };
lark-parser = callPackage ../development/python-modules/lark-parser { };
latexcodec = callPackage ../development/python-modules/latexcodec { };