biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / jsonargparse / default.nix
blob87f735079ce2877030ef5b53f0f5b16d597b45c7
2   lib,
3   argcomplete,
4   buildPythonPackage,
5   docstring-parser,
6   fetchFromGitHub,
7   fsspec,
8   jsonnet,
9   jsonschema,
10   omegaconf,
11   pytest-subtests,
12   pytestCheckHook,
13   pythonOlder,
14   pyyaml,
15   reconplogger,
16   requests,
17   ruyaml,
18   setuptools,
19   types-pyyaml,
20   types-requests,
21   typeshed-client,
24 buildPythonPackage rec {
25   pname = "jsonargparse";
26   version = "4.33.2";
27   pyproject = true;
29   disabled = pythonOlder "3.11";
31   src = fetchFromGitHub {
32     owner = "omni-us";
33     repo = "jsonargparse";
34     rev = "refs/tags/v${version}";
35     hash = "sha256-yY/j4UwAoe/qQjBQXgFSrv2BX7DB5EyGCdVYoioyKr8=";
36   };
38   build-system = [ setuptools ];
40   dependencies = [ pyyaml ];
42   optional-dependencies = {
43     all = [
44       argcomplete
45       fsspec
46       jsonnet
47       jsonschema
48       omegaconf
49       ruyaml
50       docstring-parser
51       typeshed-client
52       requests
53     ];
54     argcomplete = [ argcomplete ];
55     fsspec = [ fsspec ];
56     jsonnet = [
57       jsonnet
58       # jsonnet-binary
59     ];
60     jsonschema = [ jsonschema ];
61     omegaconf = [ omegaconf ];
62     reconplogger = [ reconplogger ];
63     ruyaml = [ ruyaml ];
64     signatures = [
65       docstring-parser
66       typeshed-client
67     ];
68     urls = [ requests ];
69   };
71   nativeCheckInputs = [
72     pytest-subtests
73     pytestCheckHook
74     types-pyyaml
75     types-requests
76   ];
78   pythonImportsCheck = [ "jsonargparse" ];
80   meta = with lib; {
81     description = "Module to mplement minimal boilerplate CLIs derived from various sources";
82     homepage = "https://github.com/omni-us/jsonargparse";
83     changelog = "https://github.com/omni-us/jsonargparse/blob/${version}/CHANGELOG.rst";
84     license = licenses.mit;
85     maintainers = with maintainers; [ fab ];
86   };