-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python2Packages.click. reinit at 7.1.2
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1d623ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to expose click v7? There are packages like typer which are incompatible with v8 (fastapi/typer#280)