python3Packages.click-configfile: adjust install_requires

This commit is contained in:
Fabian Affolter
2022-02-08 11:14:24 -08:00
committed by Jonathan Ringer
parent bcec18a345
commit 5658eeea77
@@ -4,15 +4,19 @@
, click
, six
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "click-configfile";
version = "0.2.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "lb7sE77pUOmPQ8gdzavvT2RAkVWepmKY+drfWTUdkNE=";
hash = "sha256-lb7sE77pUOmPQ8gdzavvT2RAkVWepmKY+drfWTUdkNE=";
};
propagatedBuildInputs = [
@@ -24,6 +28,15 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "install_requires=install_requires," 'install_requires=["click >= 6.6", "six >= 1.10"],'
'';
pythonImportsCheck = [
"click_configfile"
];
disabledTests = [
"test_configfile__with_unbound_section"
"test_matches_section__with_bad_arg"