Something went wrong. Try again.
lol
Something went wrong. Try again.
944 B · 40 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, buildPythonPackage, fetchFromGitHub, setuptools, pytestCheckHook,}:
buildPythonPackage rec { pname = "json-repair"; version = "0.55.2"; pyproject = true;
src = fetchFromGitHub { owner = "mangiucugna"; repo = "json_repair"; tag = "v${version}"; hash = "sha256-CzoGu6JNOaqdLZK4DyDUv+TMIA+k9AlZZy1fKnpMbkE="; };
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [ # Disable benchmark tests "tests/test_performance.py" ];
pythonImportsCheck = [ "json_repair" ];
meta = { description = "Module to repair invalid JSON, commonly used to parse the output of LLMs"; homepage = "https://github.com/mangiucugna/json_repair/"; changelog = "https://github.com/mangiucugna/json_repair/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ greg ]; mainProgram = "json_repair"; };}