567e8dfd8e
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>
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
autocommand,
|
|
importlib-resources,
|
|
jaraco-functools,
|
|
jaraco-context,
|
|
inflect,
|
|
pathlib2,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jaraco-text";
|
|
version = "4.0.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "jaraco_text";
|
|
inherit version;
|
|
hash = "sha256-W3H+zqaatvk51MkGwE/uHtp2UA0WQRF99uxFuGXxDbA=";
|
|
};
|
|
|
|
pythonNamespaces = [ "jaraco" ];
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
autocommand
|
|
jaraco-context
|
|
jaraco-functools
|
|
inflect
|
|
]
|
|
++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ lib.optionals (pythonOlder "3.10") [ pathlib2 ];
|
|
|
|
pythonImportsCheck = [ "jaraco.text" ];
|
|
|
|
meta = {
|
|
description = "Module for text manipulation";
|
|
homepage = "https://github.com/jaraco/jaraco.text";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|