depot/third_party/nixpkgs/pkgs/development/python-modules/pysbd/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

34 lines
817 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";
};
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 = teams.tts.members;
};
}