Merge pull request #318339 from ViZiD/ufal-chu-liu-edmonds

python312Packages.ufal-chu-liu-edmonds: init at 1.0.3
This commit is contained in:
Azat Bahawi 2024-08-23 15:17:16 +00:00 committed by GitHub
commit a2905a4691
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
numpy,
}:
buildPythonPackage rec {
pname = "ufal-chu-liu-edmonds";
version = "1.0.3";
pyproject = true;
src = fetchPypi {
pname = "ufal.chu_liu_edmonds";
inherit version;
hash = "sha256-v3tv6cYWoFPPgaO6KXR2uUk3MsZ458Tz5wKeFW8fzNE=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ numpy ];
checkPhase = ''
runHook preCheck
cd tests
python test.py
runHook postCheck
'';
pythonImportsCheck = [ "ufal.chu_liu_edmonds" ];
meta = with lib; {
description = "Bindings to Chu-Liu-Edmonds algorithm from TurboParser";
homepage = "https://github.com/ufal/chu_liu_edmonds";
license = licenses.gpl3Only;
maintainers = with maintainers; [ vizid ];
};
}

View File

@ -16990,6 +16990,8 @@ self: super: with self; {
inherit (pkgs.xorg) libX11 libXext;
};
ufal-chu-liu-edmonds = callPackage ../development/python-modules/ufal-chu-liu-edmonds { };
ufmt = callPackage ../development/python-modules/ufmt { };
ufo2ft = callPackage ../development/python-modules/ufo2ft { };