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