2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
argcomplete,
|
|
|
|
buildPythonPackage,
|
|
|
|
docstring-parser,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fsspec,
|
|
|
|
jsonnet,
|
|
|
|
jsonschema,
|
|
|
|
omegaconf,
|
|
|
|
pytest-subtests,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
reconplogger,
|
|
|
|
requests,
|
|
|
|
ruyaml,
|
|
|
|
setuptools,
|
|
|
|
types-pyyaml,
|
|
|
|
types-requests,
|
|
|
|
typeshed-client,
|
2024-01-25 14:12:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonargparse";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "4.32.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "omni-us";
|
|
|
|
repo = "jsonargparse";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-enI9MNaktDNC1RAMALqy82w66n7ZPm/mtAvrmzPr59c=";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [ pyyaml ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
|
|
|
all = [
|
|
|
|
argcomplete
|
|
|
|
fsspec
|
|
|
|
jsonnet
|
|
|
|
jsonschema
|
|
|
|
omegaconf
|
|
|
|
ruyaml
|
|
|
|
docstring-parser
|
|
|
|
typeshed-client
|
|
|
|
requests
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
argcomplete = [ argcomplete ];
|
|
|
|
fsspec = [ fsspec ];
|
2024-01-25 14:12:00 +00:00
|
|
|
jsonnet = [
|
|
|
|
jsonnet
|
|
|
|
# jsonnet-binary
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
jsonschema = [ jsonschema ];
|
|
|
|
omegaconf = [ omegaconf ];
|
|
|
|
reconplogger = [ reconplogger ];
|
|
|
|
ruyaml = [ ruyaml ];
|
2024-01-25 14:12:00 +00:00
|
|
|
signatures = [
|
|
|
|
docstring-parser
|
|
|
|
typeshed-client
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
urls = [ requests ];
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-subtests
|
|
|
|
pytestCheckHook
|
|
|
|
types-pyyaml
|
|
|
|
types-requests
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "jsonargparse" ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module to mplement minimal boilerplate CLIs derived from various sources";
|
|
|
|
homepage = "https://github.com/omni-us/jsonargparse";
|
|
|
|
changelog = "https://github.com/omni-us/jsonargparse/blob/${version}/CHANGELOG.rst";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|