1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, importlib-metadata
6, pytestCheckHook
7
8# large-rebuild downstream dependencies and applications
9, flask
10, black
11, magic-wormhole
12, mitmproxy
13, typer
14}:
15
16buildPythonPackage rec {
17 pname = "click";
18 version = "8.1.3";
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "sha256-doLcivswKXABZ0V16gDRgU2AjWo2r0Fagr1IHTe6e44=";
24 };
25
26 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
27 importlib-metadata
28 ];
29
30 checkInputs = [
31 pytestCheckHook
32 ];
33
34 passthru.tests = {
35 inherit black flask magic-wormhole mitmproxy typer;
36 };
37
38 meta = with lib; {
39 homepage = "https://click.palletsprojects.com/";
40 description = "Create beautiful command line interfaces in Python";
41 longDescription = ''
42 A Python package for creating beautiful command line interfaces in a
43 composable way, with as little code as necessary.
44 '';
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ SuperSandro2000 ];
47 };
48}