Commit 85f47834 authored by Greg Hellings's avatar Greg Hellings
Browse files

python312Packages.json-repair: init at 0.27.0

parent ea08d0de
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "json-repair";
  version = "0.27.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mangiucugna";
    repo = "json_repair";
    rev = "refs/tags/${version}";
    hash = "sha256-kaTwdS2zRt94pJko9AKEvszLR4z62u3ZrKlfXkJr5TQ=";
  };

  build-system = [ setuptools ];

  nativeBuildInputs = [ pytestCheckHook ];

  disabledTestPaths = [ "tests/test_performance.py" ];

  pythonImportsCheck = [ "json_repair" ];

  meta = with lib; {
    homepage = "https://github.com/mangiucugna/json_repair/";
    description = "repair invalid JSON, commonly used to parse the output of LLMs";
    license = licenses.mit;
    maintainers = with maintainers; [ greg ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -6353,6 +6353,8 @@ self: super: with self; {
  json-merge-patch = callPackage ../development/python-modules/json-merge-patch { };
  json-repair = callPackage ../development/python-modules/json-repair { };
  json-schema-for-humans = callPackage ../development/python-modules/json-schema-for-humans { };
  json-stream = callPackage ../development/python-modules/json-stream { };