2021-01-25 08:26:54 +00:00
|
|
|
{ pkgs, lib, fetchFromGitHub, buildPythonPackage, isPy3k, regex }:
|
2020-02-28 10:30:50 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "SoMaJo";
|
2020-06-30 16:28:14 +01:00
|
|
|
version = "2.1.1";
|
2020-02-28 10:30:50 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tsproisl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-30 16:28:14 +01:00
|
|
|
sha256 = "0yj3yb0qvfdv4wh7nzcsh9in8nzk7b59dvjj0x02rsmlv4kw9ah1";
|
2020-02-28 10:30:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ regex ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-28 10:30:50 +00:00
|
|
|
description = "Tokenizer and sentence splitter for German and English web texts";
|
|
|
|
homepage = "https://github.com/tsproisl/SoMaJo";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
};
|
|
|
|
}
|