forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
62 lines (54 loc) · 1.42 KB
/
default.nix
File metadata and controls
62 lines (54 loc) · 1.42 KB
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.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pallets";
repo = "click";
tag = version;
hash = "sha256-2zWNtK/LVIx/3W56uBDIC9gsINwdcwJ+2bNjZS6g1mk=";
};
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 ];
};
}