depot/third_party/nixpkgs/pkgs/development/python-modules/somajo/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

40 lines
753 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, regex
}:
buildPythonPackage rec {
pname = "somajo";
version = "2.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tsproisl";
repo = "SoMaJo";
rev = "v${version}";
sha256 = "sha256-M0WtONhsqmmK0PBB+Df4YrFpT+vfVidDkt80eBHOo04=";
};
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; [ ];
};
}