2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
argcomplete,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
docstring-parser,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fsspec,
|
|
|
|
jsonnet,
|
|
|
|
jsonschema,
|
|
|
|
omegaconf,
|
|
|
|
pydantic,
|
|
|
|
pytest-subtests,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
reconplogger,
|
|
|
|
requests,
|
|
|
|
responses,
|
|
|
|
ruyaml,
|
|
|
|
setuptools,
|
|
|
|
types-pyyaml,
|
|
|
|
types-requests,
|
|
|
|
typeshed-client,
|
2024-01-25 14:12:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonargparse";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "4.30.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-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-jeQOnJ8dLUbp60Nk5v4NYKVR8VYlGz08QHIfQotO2uY=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|