Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 31 lines 743 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, tqdm 6, spacy 7}: 8 9buildPythonPackage rec { 10 pname = "pysbd"; 11 version = "0.3.3"; 12 disabled = pythonOlder "3.5"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "56ab48a28a8470f0042a4cb7c9da8a6dde8621ecf87a86d75f201cbf1837e77f"; 17 }; 18 19 checkInputs = [ tqdm spacy ]; 20 21 doCheck = false; # requires pyconll and blingfire 22 23 pythonImportsCheck = [ "pysbd" ]; 24 25 meta = with lib; { 26 description = "Pysbd (Python Sentence Boundary Disambiguation) is a rule-based sentence boundary detection that works out-of-the-box across many languages"; 27 homepage = "https://github.com/nipunsadvilkar/pySBD"; 28 license = licenses.mit; 29 maintainers = [ maintainers.mic92 ]; 30 }; 31}