4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
40 lines
763 B
Nix
40 lines
763 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, regex
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "somajo";
|
|
version = "2.2.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tsproisl";
|
|
repo = "SoMaJo";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-EnYw8TSZLXgB4pZaZBgxaO13PpTDx4lGsdGJ+51A6wE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
regex
|
|
];
|
|
|
|
# loops forever
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
pythonImportsCheck = [
|
|
"somajo"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tokenizer and sentence splitter for German and English web texts";
|
|
homepage = "https://github.com/tsproisl/SoMaJo";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|