mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
35 lines
823 B
Nix
35 lines
823 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, tqdm
|
|
, spacy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysbd";
|
|
version = "0.3.4";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
# 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 = 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 = teams.tts.members;
|
|
};
|
|
}
|