nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 tqdm,
6 spacy,
7}:
8
9buildPythonPackage rec {
10 pname = "pysbd";
11 version = "0.3.4";
12 format = "setuptools";
13
14 # provides no sdist on pypi
15 src = fetchFromGitHub {
16 owner = "nipunsadvilkar";
17 repo = "pySBD";
18 rev = "v${version}";
19 sha256 = "12p7qm237z56hw4zr03n8rycgfymhki2m9c4w3ib0mvqq122a5dp";
20 };
21
22 nativeCheckInputs = [
23 tqdm
24 spacy
25 ];
26
27 doCheck = false; # requires pyconll and blingfire
28
29 pythonImportsCheck = [ "pysbd" ];
30
31 meta = {
32 description = "Pysbd (Python Sentence Boundary Disambiguation) is a rule-based sentence boundary detection that works out-of-the-box across many languages";
33 homepage = "https://github.com/nipunsadvilkar/pySBD";
34 license = lib.licenses.mit;
35 teams = [ lib.teams.tts ];
36 };
37}