python3Packages.click: 7.1.2 -> 8.0.1

This commit is contained in:
Martin Weinelt 2021-06-02 21:14:33 +02:00 committed by Jonathan Ringer
parent 6bdc4f3fe2
commit c3a6853878
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -1,12 +1,19 @@
{ lib, buildPythonPackage, fetchPypi, locale, pytestCheckHook }:
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, importlib-metadata
, locale
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "click";
version = "7.1.2";
version = "8.0.1";
src = fetchPypi {
inherit pname version;
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a";
sha256 = "0ymdyf37acq4qxh038q0xx44qgj6y2kf0jd0ivvix6qij88w214c";
};
postPatch = ''
@ -14,7 +21,13 @@ buildPythonPackage rec {
--replace "'locale'" "'${locale}/bin/locale'"
'';
checkInputs = [ pytestCheckHook ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
homepage = "https://click.palletsprojects.com/";