Files
nixpkgs/pkgs/development/python-modules/click-configfile/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
995 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
click,
six,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "click-configfile";
version = "0.2.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-lb7sE77pUOmPQ8gdzavvT2RAkVWepmKY+drfWTUdkNE=";
};
propagatedBuildInputs = [
click
six
];
nativeCheckInputs = [ 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"
];
meta = {
description = "Add support for commands that use configuration files to Click";
homepage = "https://github.com/click-contrib/click-configfile";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}