Commit 2572f96d authored by Steven Allen's avatar Steven Allen
Browse files

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.
parent 6ec0b226
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };