Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: json-repair 0.55.2 -> 0.61.4 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/yp5y9jyk511jnc4bq83225x4f7flh5v7-packages.json.drv building '/nix/store/yp5y9jyk511jnc4bq83225x4f7flh5v7-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..068b195e5cf3 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.4"; pyproject = true; src = fetchFromGitHub { owner = "mangiucugna"; repo = "json_repair"; tag = "v${version}"; - hash = "sha256-CzoGu6JNOaqdLZK4DyDUv+TMIA+k9AlZZy1fKnpMbkE="; + hash = "sha256-hnbxGHoN1oocZkUME7TZqmEHJ2ZdrXzLGf3r2jXNdTo="; }; 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. 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_guided_parse.py::test_schema_preserves_prefixed_valid_json_string_content - ValueError: jsonschema is required when using schema-aware repair. 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. ================== 6 failed, 207 passed, 70 skipped in 4.25s ===================