Skip to content

Commit

Permalink
python2Packages.click. reinit at 7.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored and Jonathan Ringer committed Jun 21, 2021
1 parent d8def3a commit 1d623ad
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/development/python-modules/click/7.nix
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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python2-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

1 comment on commit 1d623ad

@alexvorobiev
Copy link
Contributor

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)

Please sign in to comment.