Files
nixpkgs/pkgs/development/python-modules/configargparse/default.nix
Martin Weinelt 86702b6b75 python3Packages.configargparse: 1.7 -> 1.7.1
https://github.com/bw2/ConfigArgParse/releases/tag/1.7.1

This commit was automatically generated using update-python-libraries.
2025-08-09 18:58:54 +02:00

51 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
mock,
pytestCheckHook,
pyyaml,
pythonAtLeast,
pythonOlder,
}:
buildPythonPackage rec {
pname = "configargparse";
version = "1.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bw2";
repo = "ConfigArgParse";
tag = version;
hash = "sha256-wrWfQzr0smM83helOEJPbayrEpAtXJYYXIw4JnGLNho=";
};
optional-dependencies = {
yaml = [ pyyaml ];
};
nativeCheckInputs = [
pytestCheckHook
mock
]
++ lib.flatten (lib.attrValues optional-dependencies);
disabledTests = lib.optionals (pythonAtLeast "3.13") [
# regex mismatch
"testMutuallyExclusiveArgs"
];
pythonImportsCheck = [ "configargparse" ];
meta = with lib; {
description = "Drop-in replacement for argparse";
homepage = "https://github.com/bw2/ConfigArgParse";
changelog = "https://github.com/bw2/ConfigArgParse/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = [ ];
};
}