python3Packages.language-data: init at 1.0.1

This commit is contained in:
Fabian Affolter
2021-11-30 18:52:55 -08:00
committed by Jonathan Ringer
parent 59325220e5
commit f9ee9559d5
2 changed files with 46 additions and 0 deletions
@@ -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 ];
};
}