1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, click
6, setuptools-scm
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "cloup";
12 version = "2.1.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-3ULHyc1JP63FOkI2+WF4o/EYu72UWn+K2vzVA02CaXE=";
20 };
21
22 nativeBuildInputs = [
23 setuptools-scm
24 ];
25
26 propagatedBuildInputs = [
27 click
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "cloup"
36 ];
37
38 meta = with lib; {
39 homepage = "https://github.com/janLuke/cloup";
40 description = "Click extended with option groups, constraints, aliases, help themes";
41 changelog = "https://github.com/janluke/cloup/releases/tag/v${version}";
42 longDescription = ''
43 Enriches Click with option groups, constraints, command aliases, help sections for subcommands, themes for --help and other stuff.
44 '';
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ friedelino ];
47 };
48}