nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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}:
14
15buildPythonPackage rec {
16 pname = "click";
17 version = "8.1.3";
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-doLcivswKXABZ0V16gDRgU2AjWo2r0Fagr1IHTe6e44=";
23 };
24
25 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
26 importlib-metadata
27 ];
28
29 checkInputs = [
30 pytestCheckHook
31 ];
32
33 passthru.tests = {
34 inherit black flask magic-wormhole mitmproxy;
35 };
36
37 meta = with lib; {
38 homepage = "https://click.palletsprojects.com/";
39 description = "Create beautiful command line interfaces in Python";
40 longDescription = ''
41 A Python package for creating beautiful command line interfaces in a
42 composable way, with as little code as necessary.
43 '';
44 license = licenses.bsd3;
45 maintainers = with maintainers; [ SuperSandro2000 ];
46 };
47}