blob: 09e666419918dc3689cd88a32c47f25dfa7b76b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
tqdm,
spacy,
}:
buildPythonPackage rec {
pname = "pysbd";
version = "0.3.4";
format = "setuptools";
# provides no sdist on pypi
src = fetchFromGitHub {
owner = "nipunsadvilkar";
repo = "pySBD";
rev = "v${version}";
sha256 = "12p7qm237z56hw4zr03n8rycgfymhki2m9c4w3ib0mvqq122a5dp";
};
nativeCheckInputs = [
tqdm
spacy
];
doCheck = false; # requires pyconll and blingfire
pythonImportsCheck = [ "pysbd" ];
meta = {
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 = lib.licenses.mit;
teams = [ lib.teams.tts ];
};
}
|