2020-04-24 23:36:52 +00:00
|
|
|
{ pkgs, stdenv, fetchFromGitHub, buildPythonPackage, isPy3k, regex }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "SoMaJo";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "2.0.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsproisl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "08nicj3nj6pi6djli26gf0kf3s2da9ysn1cpkyw7j88v8vav0p7s";
|
2020-04-24 23:36:52 +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 ];
|
|
|
|
};
|
|
|
|
}
|