python312Packages.json-repair: init at 0.27.0

This commit is contained in:
Greg Hellings
2024-08-05 20:50:58 -05:00
parent ea08d0dede
commit 85f478341b
2 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
{
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 ];
};
}

View File

@@ -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 { };