2020-02-28 10:30:50 +00:00
|
|
|
{ pkgs, stdenv, fetchFromGitHub, buildPythonPackage, isPy3k, regex }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "SoMaJo";
|
2020-06-18 06:54:34 +01:00
|
|
|
version = "2.1.0";
|
2020-02-28 10:30:50 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsproisl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-18 06:54:34 +01:00
|
|
|
sha256 = "17ybm5rgwc6jy3i1c8nm05j7fd418n6hp44zv0q77kzhd66am6pp";
|
2020-02-28 10:30:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ regex ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tokenizer and sentence splitter for German and English web texts";
|
|
|
|
homepage = "https://github.com/tsproisl/SoMaJo";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|