python312Packages.ufal-chu-liu-edmonds: init at 1.0.3

This commit is contained in:
Radik Islamov
2024-07-22 08:12:20 +05:00
parent 3d59539cc4
commit d473784f5c
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

@@ -16432,6 +16432,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 { };