nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 963 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mock, 6 pytestCheckHook, 7 pyyaml, 8 pythonAtLeast, 9}: 10 11buildPythonPackage rec { 12 pname = "configargparse"; 13 version = "1.7.1"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "bw2"; 18 repo = "ConfigArgParse"; 19 tag = version; 20 hash = "sha256-wrWfQzr0smM83helOEJPbayrEpAtXJYYXIw4JnGLNho="; 21 }; 22 23 optional-dependencies = { 24 yaml = [ pyyaml ]; 25 }; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 mock 30 ] 31 ++ lib.concatAttrValues optional-dependencies; 32 33 disabledTests = lib.optionals (pythonAtLeast "3.13") [ 34 # regex mismatch 35 "testMutuallyExclusiveArgs" 36 ]; 37 38 pythonImportsCheck = [ "configargparse" ]; 39 40 meta = { 41 description = "Drop-in replacement for argparse"; 42 homepage = "https://github.com/bw2/ConfigArgParse"; 43 changelog = "https://github.com/bw2/ConfigArgParse/releases/tag/${src.tag}"; 44 license = lib.licenses.mit; 45 maintainers = [ ]; 46 }; 47}