ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
41 lines
898 B
Nix
41 lines
898 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, importlib-metadata
|
|
, locale
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "click";
|
|
version = "8.0.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-QQ6TKwUPXu13PEzalN51lxyJzbMVWnKggxE5p55ey1s=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/click/_unicodefun.py \
|
|
--replace '"locale"' "'${locale}/bin/locale'"
|
|
'';
|
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
importlib-metadata
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|