python2Packages.click. reinit at 7.1.2

This commit is contained in:
Martin Weinelt 2021-06-02 23:32:11 +02:00 committed by Jonathan Ringer
parent d8def3a0ab
commit 1d623ad018
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ lib, buildPythonPackage, fetchPypi, locale, pytestCheckHook }:
buildPythonPackage rec {
pname = "click";
version = "7.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a";
};
postPatch = ''
substituteInPlace src/click/_unicodefun.py \
--replace "'locale'" "'${locale}/bin/locale'"
'';
checkInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://click.palletsprojects.com/";
description = "Create beautiful command line interfaces in Python";
longDescription = ''
A Python package for creating beautiful command line interfaces in a
composable way, with as little code as necessary.
'';
license = licenses.bsd3;
};
}

View File

@ -56,6 +56,8 @@ with self; with super; {
cliapp = callPackage ../development/python-modules/cliapp { };
click = callPackage ../development/python-modules/click/7.nix { };
closure-linter = callPackage ../development/python-modules/closure-linter { };
cmdtest = callPackage ../development/python-modules/cmdtest { };