python3Packages.jaraco_text: add jaraco-context
This commit is contained in:
committed by
Jonathan Ringer
parent
aa0dcc60e0
commit
04412150cd
@@ -1,33 +1,51 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, importlib-resources
|
||||
, jaraco_functools
|
||||
, jaraco-context
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jaraco.text";
|
||||
version = "3.6.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "901d3468eaaa04f1d8a8f141f54b8887bfd943ccba311fc1c1de62c66604dfe0";
|
||||
};
|
||||
|
||||
pythonNamespaces = [ "jaraco" ];
|
||||
pythonNamespaces = [
|
||||
"jaraco"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
nativeBuildInputs =[ setuptools-scm ];
|
||||
propagatedBuildInputs = [
|
||||
jaraco-context
|
||||
jaraco_functools
|
||||
] ++ lib.optional (pythonOlder "3.7") [ importlib-resources ];
|
||||
] ++ lib.optional (pythonOlder "3.9") [
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
# no tests in pypi package
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"jaraco.text"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for text manipulation";
|
||||
homepage = "https://github.com/jaraco/jaraco.text";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user