Unverified Commit 1075022b authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

python3Packages.jsonargparse: cleanup, skip failing tests (#497970)

parents 9c0f4af1 25362189
Loading
Loading
Loading
Loading
+33 −17
Original line number Diff line number Diff line
{
  lib,
  argcomplete,
  buildPythonPackage,
  docstring-parser,
  fetchFromGitHub,
  pythonAtLeast,

  # build-system
  setuptools,

  # dependencies
  pyyaml,

  # optional-dependencies

  # tests

  argcomplete,
  docstring-parser,
  fsspec,
  jsonnet,
  jsonschema,
  omegaconf,
  pytestCheckHook,
  pyyaml,
  reconplogger,
  requests,
  ruyaml,
  setuptools,
  toml,
  types-pyyaml,
  types-requests,
@@ -36,18 +46,18 @@ buildPythonPackage (finalAttrs: {

  dependencies = [ pyyaml ];

  optional-dependencies = {
    all = [
      argcomplete
      fsspec
      jsonnet
      jsonschema
      omegaconf
      ruyaml
      docstring-parser
      typeshed-client
      requests
    ];
  optional-dependencies = lib.fix (self: {
    all =
      self.argcomplete
      ++ self.fsspec
      ++ self.jsonnet
      ++ self.jsonschema
      ++ self.omegaconf
      ++ self.reconplogger
      ++ self.ruyaml
      ++ self.signatures
      ++ self.toml
      ++ self.urls;
    argcomplete = [ argcomplete ];
    fsspec = [ fsspec ];
    jsonnet = [
@@ -64,7 +74,7 @@ buildPythonPackage (finalAttrs: {
    ];
    toml = [ toml ];
    urls = [ requests ];
  };
  });

  nativeCheckInputs = [
    pytestCheckHook
@@ -72,6 +82,12 @@ buildPythonPackage (finalAttrs: {
    types-requests
  ];

  disabledTests = lib.optionals (pythonAtLeast "3.14") [
    # _pickle.PicklingError: Can't pickle local object ...
    "test_get_argument_group_class_underscores_to_dashes"
    "test_pickle_parser"
  ];

  pythonImportsCheck = [ "jsonargparse" ];

  meta = {