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