depot/third_party/nixpkgs/pkgs/development/python-modules/somajo/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

45 lines
814 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, setuptools
, regex
}:
buildPythonPackage rec {
pname = "somajo";
version = "2.3.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tsproisl";
repo = "SoMaJo";
rev = "refs/tags/v${version}";
hash = "sha256-3A2et4pl92LsRtEx2Ki8Soz3n1nZEGQGPc3ZIBDojNM=";
};
nativeBuildInputs = [
setuptools
];
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; [ ];
};
}