2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchFromGitHub
|
2021-06-28 23:13:55 +00:00
|
|
|
, importlib-metadata
|
|
|
|
, pytestCheckHook
|
2022-03-30 09:31:56 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
# large-rebuild downstream dependencies and applications
|
2022-03-30 09:31:56 +00:00
|
|
|
, flask
|
|
|
|
, black
|
|
|
|
, magic-wormhole
|
|
|
|
, mitmproxy
|
2022-09-09 14:08:57 +00:00
|
|
|
, typer
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "click";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "8.1.7";
|
|
|
|
format = "setuptools";
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pallets";
|
|
|
|
repo = "click";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-8YqIKRyw5MegnRwAO7YTCZateEFQFTH2PHpE8gTPTow=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
passthru.tests = {
|
2022-09-09 14:08:57 +00:00
|
|
|
inherit black flask magic-wormhole mitmproxy typer;
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ nickcao ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|