Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 26 lines 664 B view raw
1{ lib, stdenv, fetchFromGitHub, buildPythonPackage, isPy3k, regex }: 2 3buildPythonPackage rec { 4 pname = "SoMaJo"; 5 version = "2.1.3"; 6 disabled = !isPy3k; 7 8 src = fetchFromGitHub { 9 owner = "tsproisl"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "07jkkg5ph5m47xf8w5asy5930qcpy6p11j0admll2y6yjynd2b47"; 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; [ danieldk ]; 25 }; 26}