5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
50 lines
1 KiB
Nix
50 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
autocommand,
|
|
importlib-resources,
|
|
jaraco-functools,
|
|
jaraco-context,
|
|
inflect,
|
|
pathlib2,
|
|
pytestCheckHook,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jaraco-text";
|
|
version = "3.12.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "jaraco_text";
|
|
inherit version;
|
|
hash = "sha256-tplJH50HS0/q/f2gQH+lu8XYP0hWB6AS6TRyuhYfaEM=";
|
|
};
|
|
|
|
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 = with lib; {
|
|
description = "Module for text manipulation";
|
|
homepage = "https://github.com/jaraco/jaraco.text";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|