1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
importlib-metadata,
pytestCheckHook,
# large-rebuild downstream dependencies and applications
flask,
black,
magic-wormhole,
mitmproxy,
typer,
flit-core,
}:
buildPythonPackage rec {
pname = "click";
version = "8.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pallets";
repo = "click";
tag = version;
hash = "sha256-MbaIQJr6GbM8JwdbUkbeC8TqWN5dH82pFOqHwJE2PBA=";
};
build-system = [ flit-core ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# for some reason the tests fail to execute cat, even though they run with less just fine,
# even adding coreutils to nativeCheckInputs explicitly does not change anything
"test_echo_via_pager"
# test fails with filename normalization on zfs
"test_file_surrogates"
];
passthru.tests = {
inherit
black
flask
magic-wormhole
mitmproxy
typer
;
};
meta = {
changelog = "https://github.com/pallets/click/blob/${src.tag}/CHANGES.rst";
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 = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ nickcao ];
};
}
|