python313Packages.minisbd: init at 0.9.3
This PR adds minisbd, a dependency of argostranslate 1.11.0. See https://github.com/NixOS/nixpkgs/pull/491472.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
# build-system
|
||||
hatchling,
|
||||
# dependencies
|
||||
filelock,
|
||||
numpy,
|
||||
onnxruntime,
|
||||
}:
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "minisbd";
|
||||
version = "0.9.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LibreTranslate";
|
||||
repo = "MiniSBD";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-QAIuggOxoFeod4CaTDXDQj6UGwRpy4N1Pw0pTXHs7/A=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
filelock
|
||||
numpy
|
||||
onnxruntime
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"minisbd"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Free and open source library for fast sentence boundary detection";
|
||||
homepage = finalAttrs.src.meta.homepage;
|
||||
changelog = "https://github.com/LibreTranslate/MiniSBD/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [ Stebalien ];
|
||||
};
|
||||
})
|
||||
@@ -9760,6 +9760,8 @@ self: super: with self; {
|
||||
|
||||
minio = callPackage ../development/python-modules/minio { };
|
||||
|
||||
minisbd = callPackage ../development/python-modules/minisbd { };
|
||||
|
||||
miniupnpc = callPackage ../development/python-modules/miniupnpc { };
|
||||
|
||||
mip = callPackage ../development/python-modules/mip { };
|
||||
|
||||
Reference in New Issue
Block a user