Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / click-configfile / default.nix
blobc1b0a0f092344a12db1aeac502789fbbe6873a7e
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , click
5 , six
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "click-configfile";
12   version = "0.2.3";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-lb7sE77pUOmPQ8gdzavvT2RAkVWepmKY+drfWTUdkNE=";
20   };
22   propagatedBuildInputs = [
23     click
24     six
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   postPatch = ''
32     substituteInPlace setup.py \
33       --replace "install_requires=install_requires," 'install_requires=["click >= 6.6", "six >= 1.10"],'
34   '';
36   pythonImportsCheck = [
37     "click_configfile"
38   ];
40   disabledTests = [
41     "test_configfile__with_unbound_section"
42     "test_matches_section__with_bad_arg"
43   ];
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   };