nixpkgs/pkgs/development/python-modules/segments/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

48 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
isPy27,
setuptools,
regex,
csvw,
pytestCheckHook,
pytest-cov-stub,
pytest-mock,
}:
buildPythonPackage rec {
pname = "segments";
version = "2.3.0";
pyproject = true;
disabled = isPy27;
src = fetchFromGitHub {
owner = "cldf";
repo = "segments";
rev = "v${version}";
sha256 = "sha256-5VgjaWeinXimpoCBhKBvVOmvcCIWrOqYMQegVDGJAKo=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
regex
csvw
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
pytest-mock
];
meta = {
changelog = "https://github.com/cldf/segments/blob/${src.rev}/CHANGES.md";
description = "Unicode Standard tokenization routines and orthography profile segmentation";
mainProgram = "segments";
homepage = "https://github.com/cldf/segments";
license = lib.licenses.asl20;
maintainers = [ ];
};
}