1{ pkgs, stdenv, fetchFromGitHub, buildPythonPackage, isPy3k, regex }:
2
3buildPythonPackage rec {
4 pname = "SoMaJo";
5 version = "2.1.1";
6 disabled = !isPy3k;
7
8 src = fetchFromGitHub {
9 owner = "tsproisl";
10 repo = pname;
11 rev = "v${version}";
12 sha256 = "0yj3yb0qvfdv4wh7nzcsh9in8nzk7b59dvjj0x02rsmlv4kw9ah1";
13 };
14
15 propagatedBuildInputs = [ regex ];
16
17 meta = with stdenv.lib; {
18 description = "Tokenizer and sentence splitter for German and English web texts";
19 homepage = "https://github.com/tsproisl/SoMaJo";
20 license = licenses.gpl3;
21 maintainers = with maintainers; [ danieldk ];
22 };
23}