nixpkgs/pkgs/development/python-modules/sentence-splitter/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

42 lines
835 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, regex
}:
buildPythonPackage rec {
pname = "sentence-splitter";
version = "1.4";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "mediacloud";
repo = "sentence-splitter";
rev = version;
hash = "sha256-FxRi8fhKB9++lCTFpCAug0fxjkSVTKChLY84vkshR34=";
};
propagatedBuildInputs = [
regex
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"sentence_splitter"
];
meta = with lib; {
description = "Text to sentence splitter using heuristic algorithm by Philipp Koehn and Josh Schroeder";
homepage = "https://github.com/mediacloud/sentence-splitter";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ paveloom ];
};
}