1{ lib
2, buildPythonPackage
3, fetchPypi
4, click
5, six
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "click-configfile";
12 version = "0.2.3";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-lb7sE77pUOmPQ8gdzavvT2RAkVWepmKY+drfWTUdkNE=";
20 };
21
22 propagatedBuildInputs = [
23 click
24 six
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 postPatch = ''
32 substituteInPlace setup.py \
33 --replace "install_requires=install_requires," 'install_requires=["click >= 6.6", "six >= 1.10"],'
34 '';
35
36 pythonImportsCheck = [
37 "click_configfile"
38 ];
39
40 disabledTests = [
41 "test_configfile__with_unbound_section"
42 "test_matches_section__with_bad_arg"
43 ];
44
45 meta = with lib; {
46 description = "Add support for commands that use configuration files to Click";
47 homepage = "https://github.com/click-contrib/click-configfile";
48 license = licenses.bsd3;
49 maintainers = with maintainers; [ ];
50 };
51}