blob: cd3b9b93206a03e26fa19dcebea4cbd1399f444a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
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 = [ ];
};
}
|