a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
60 lines
1 KiB
Nix
60 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.11.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-DdtYlZX+F26oF5yAHKTs4r4Kpx83e5HzymW010GUg1E=";
|
|
};
|
|
|
|
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 = with maintainers; [ ];
|
|
};
|
|
}
|