python3.pkgs.pysbd: init at 0.3.3

This commit is contained in:
Jörg Thalheim 2020-11-09 11:52:08 +01:00 committed by Martin Weinelt
parent 3e5039cbd5
commit a7455e6911
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, tqdm
, spacy
}:
buildPythonPackage rec {
pname = "pysbd";
version = "0.3.3";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "56ab48a28a8470f0042a4cb7c9da8a6dde8621ecf87a86d75f201cbf1837e77f";
};
checkInputs = [ tqdm spacy ];
doCheck = false; # requires pyconll and blingfire
pythonImportsCheck = [ "pysbd" ];
meta = with lib; {
description = "Pysbd (Python Sentence Boundary Disambiguation) is a rule-based sentence boundary detection that works out-of-the-box across many languages";
homepage = "https://github.com/nipunsadvilkar/pySBD";
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}

View file

@ -4568,6 +4568,8 @@ in {
pkuseg = callPackage ../development/python-modules/pkuseg { };
pysbd = callPackage ../development/python-modules/pysbd { };
python-csxcad = callPackage ../development/python-modules/python-csxcad { };
python-openems = callPackage ../development/python-modules/python-openems { };