Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 89 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ lib, argcomplete, buildPythonPackage, docstring-parser, fetchFromGitHub, fsspec, jsonnet, jsonschema, omegaconf, pytest-subtests, pytestCheckHook, pythonOlder, pyyaml, reconplogger, requests, ruyaml, setuptools, toml, types-pyyaml, types-requests, typeshed-client,}:
buildPythonPackage rec { pname = "jsonargparse"; version = "4.40.1"; pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub { owner = "omni-us"; repo = "jsonargparse"; tag = "v${version}"; hash = "sha256-GxltSN1o7vAZQXrejpBp5YMqOQaln8pqKxmGNa0vA/Q="; };
build-system = [ setuptools ];
dependencies = [ pyyaml ];
optional-dependencies = { all = [ argcomplete fsspec jsonnet jsonschema omegaconf ruyaml docstring-parser typeshed-client requests ]; argcomplete = [ argcomplete ]; fsspec = [ fsspec ]; jsonnet = [ jsonnet # jsonnet-binary ]; jsonschema = [ jsonschema ]; omegaconf = [ omegaconf ]; reconplogger = [ reconplogger ]; ruyaml = [ ruyaml ]; signatures = [ docstring-parser typeshed-client ]; toml = [ toml ]; urls = [ requests ]; };
nativeCheckInputs = [ pytest-subtests pytestCheckHook types-pyyaml types-requests ];
pythonImportsCheck = [ "jsonargparse" ];
meta = with lib; { description = "Module to implement minimal boilerplate CLIs derived from various sources"; homepage = "https://github.com/omni-us/jsonargparse"; changelog = "https://github.com/omni-us/jsonargparse/blob/v${version}/CHANGELOG.rst"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}