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:
Steven Allen
2026-02-17 13:17:40 -08:00
parent 6ec0b226f7
commit 2572f96df4
2 changed files with 45 additions and 0 deletions
@@ -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 ];
};
})
+2
View File
@@ -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 { };