Something went wrong. Try again.
lol
Something went wrong. Try again.
963 B · 47 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, buildPythonPackage, fetchFromGitHub, mock, pytestCheckHook, pyyaml, pythonAtLeast,}:
buildPythonPackage rec { pname = "configargparse"; version = "1.7.1"; format = "setuptools";
src = fetchFromGitHub { owner = "bw2"; repo = "ConfigArgParse"; tag = version; hash = "sha256-wrWfQzr0smM83helOEJPbayrEpAtXJYYXIw4JnGLNho="; };
optional-dependencies = { yaml = [ pyyaml ]; };
nativeCheckInputs = [ pytestCheckHook mock ] ++ lib.concatAttrValues 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/${src.tag}"; license = lib.licenses.mit; maintainers = [ ]; };}