Merge pull request #241640 from fabaff/configargparse-bump

python311Packages.configargparse: 1.5.3 -> 1.5.5
This commit is contained in:
Fabian Affolter 2023-07-05 22:38:18 +02:00 committed by GitHub
commit 9d86226a63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,33 +4,43 @@
, mock , mock
, pytestCheckHook , pytestCheckHook
, pyyaml , pyyaml
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "configargparse"; pname = "configargparse";
version = "1.5.3"; version = "1.5.5";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bw2"; owner = "bw2";
repo = "ConfigArgParse"; repo = "ConfigArgParse";
rev = "v${version}"; rev = "refs/tags/${version}";
sha256 = "1dsai4bilkp2biy9swfdx2z0k4akw4lpvx12flmk00r80hzgbglz"; hash = "sha256-nhsbgyoIsYyrW20j4X4RosMJU/B+j7Z5YbebmZCLW4I=";
};
passthru.optional-dependencies = {
yaml = [
pyyaml
];
}; };
nativeCheckInputs = [ nativeCheckInputs = [
mock
pytestCheckHook pytestCheckHook
pyyaml mock
]; ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [ "configargparse" ]; pythonImportsCheck = [
"configargparse"
];
meta = with lib; { meta = with lib; {
description = "A drop-in replacement for argparse"; description = "A drop-in replacement for argparse";
homepage = "https://github.com/bw2/ConfigArgParse"; homepage = "https://github.com/bw2/ConfigArgParse";
changelog = "https://github.com/bw2/ConfigArgParse/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.willibutz ]; maintainers = with maintainers; [ willibutz ];
}; };
} }