python312Packages.json-repair: init at 0.27.0
This commit is contained in:
35
pkgs/development/python-modules/json-repair/default.nix
Normal file
35
pkgs/development/python-modules/json-repair/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user