Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: json-repair 0.55.2 -> 0.61.2 https://github.com/mangiucugna/json_repair/releases attrpath: json-repair Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/xk4lacg3l107cba5r13pfp7l0ld7p78i-packages.json.drv building '/nix/store/xk4lacg3l107cba5r13pfp7l0ld7p78i-packages.json.drv'... Going to be running update for following packages: - json-repair-0.55.2 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - json-repair-0.55.2: UPDATING ... - json-repair-0.55.2: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/json-repair/default.nix b/pkgs/development/python-modules/json-repair/default.nix index bc22f0b4c49e..b814329819ec 100644 --- a/pkgs/development/python-modules/json-repair/default.nix +++ b/pkgs/development/python-modules/json-repair/default.nix @@ -8,14 +8,14 @@ buildPythonPackage rec { pname = "json-repair"; - version = "0.55.2"; + version = "0.61.2"; pyproject = true; src = fetchFromGitHub { owner = "mangiucugna"; repo = "json_repair"; tag = "v${version}"; - hash = "sha256-CzoGu6JNOaqdLZK4DyDUv+TMIA+k9AlZZy1fKnpMbkE="; + hash = "sha256-uy5RrSdpl0ejjBaHSU+P1Muk9bf/xW27OAGc9HNAsLw="; }; build-system = [ setuptools ]; No auto update branch exists Received ExitFailure 1 when running Raw command: nix-build --option sandbox true --arg config "{ allowUnfree = true; allowAliases = false; }" --arg overlays "[ ]" -A json-repair nix build failed. src/json_repair/schema_repair.py:262: in repair_value return self._repair_union(value, schema["anyOf"], path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = value = '1', schemas = [{'type': 'integer'}, {'type': 'string'}], path = '$' def _repair_union(self, value: Any, schemas: list[dict[str, Any] | bool], path: str) -> JSONReturnType: last_error: Exception | None = None for subschema in schemas: try: candidate = self.repair_value(copy.deepcopy(value), subschema, path) self.validate(candidate, subschema) except ValueError as exc: last_error = exc else: return candidate if last_error: > raise ValueError(str(last_error)) from last_error E ValueError: jsonschema is required when using schema-aware repair. src/json_repair/schema_repair.py:296: ValueError =========================== short test summary info ============================ FAILED tests/test_schema_parser_paths.py::test_parse_array_schema_missing_object_brace - ValueError: jsonschema is required when using schema-aware repair. FAILED tests/test_schema_parser_paths.py::test_parse_object_schema_pattern_extra_schemas - ValueError: jsonschema is required when using schema-aware repair. FAILED tests/test_schema_parser_paths.py::test_parse_object_schema_drop_property_and_additional_schema - ValueError: jsonschema is required when using schema-aware repair. FAILED tests/test_schema_parser_paths.py::test_parse_object_schema_closing_array_bracket_and_extra_brace - ValueError: jsonschema is required when using schema-aware repair. FAILED tests/test_schema_repairer.py::test_repair_value_missing_and_unions - ValueError: jsonschema is required when using schema-aware repair. ================== 5 failed, 197 passed, 70 skipped in 3.78s ===================