nixpkgs/pkgs/development/python-modules/somajo/default.nix

24 lines
613 B
Nix
Raw Normal View History

{ pkgs, lib, fetchFromGitHub, buildPythonPackage, isPy3k, regex }:
2020-02-28 10:30:50 +00:00
buildPythonPackage rec {
pname = "SoMaJo";
version = "2.1.2";
2020-02-28 10:30:50 +00:00
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "tsproisl";
repo = pname;
rev = "v${version}";
sha256 = "1c4g8nhlcc348w0axdswv69q8k3qxwbnvim1yf7vagd0adv83gsj";
2020-02-28 10:30:50 +00:00
};
propagatedBuildInputs = [ regex ];
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.gpl3Plus;
2020-02-28 10:30:50 +00:00
maintainers = with maintainers; [ danieldk ];
};
}