Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, fetchFromGitHub, mock, pytestCheckHook, pyyaml, pythonAtLeast, setuptools, setuptools-scm,}:
buildPythonPackage (finalAttrs: { pname = "configargparse"; version = "1.8.0"; pyproject = true;
src = fetchFromGitHub { owner = "bw2"; repo = "ConfigArgParse"; tag = "v${finalAttrs.version}"; hash = "sha256-2r5tm2xdN8uGAle4Ee6w4mWsMxc25/kg+jhH+TONPoY="; };
build-system = [ setuptools setuptools-scm ];
optional-dependencies = { yaml = [ pyyaml ]; };
nativeCheckInputs = [ pytestCheckHook mock ] ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
disabledTests = lib.optionals (pythonAtLeast "3.13") [ # regex mismatch "testMutuallyExclusiveArgs" ];
pythonImportsCheck = [ "configargparse" ];
meta = { description = "Drop-in replacement for argparse"; homepage = "https://github.com/bw2/ConfigArgParse"; changelog = "https://github.com/bw2/ConfigArgParse/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ ]; };})