python312Packages.gliner: init at 0.2.20

This commit is contained in:
Gaetan Lepage
2025-05-22 14:20:43 +02:00
parent 8816e907c6
commit c340621151
2 changed files with 62 additions and 0 deletions
@@ -0,0 +1,60 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
huggingface-hub,
onnxruntime,
sentencepiece,
torch,
tqdm,
transformers,
}:
buildPythonPackage rec {
pname = "gliner";
version = "0.2.20";
pyproject = true;
src = fetchFromGitHub {
owner = "urchade";
repo = "GLiNER";
tag = "v${version}";
hash = "sha256-aWBDnaiq9Z30YT4sszEVk1WAyU4aH8SFD6ESOBkT2ds=";
};
build-system = [
setuptools
];
dependencies = [
huggingface-hub
onnxruntime
sentencepiece
torch
tqdm
transformers
];
pythonImportsCheck = [ "gliner" ];
# All tests require internet
doCheck = false;
meta = {
description = "Generalist and Lightweight Model for Named Entity Recognition";
homepage = "https://github.com/urchade/GLiNER";
changelog = "https://github.com/urchade/GLiNER/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
badPlatforms = [
# terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException'
# Attempt to use DefaultLogger but none has been registered.
"aarch64-linux"
];
};
}
+2
View File
@@ -5688,6 +5688,8 @@ self: super: with self; {
glfw = callPackage ../development/python-modules/glfw { };
gliner = callPackage ../development/python-modules/gliner { };
glob2 = callPackage ../development/python-modules/glob2 { };
globus-sdk = callPackage ../development/python-modules/globus-sdk { };