Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
883 B · 38 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839{ lib, buildPythonPackage, fetchFromGitHub, setuptools, pytestCheckHook,}:
buildPythonPackage rec { pname = "json-repair"; version = "0.47.8"; pyproject = true;
src = fetchFromGitHub { owner = "mangiucugna"; repo = "json_repair"; tag = "v${version}"; hash = "sha256-f3SKBzK3a4rx6lekUIZ+Bz8jHvM/i/Q3u/qHDD2YWMI="; };
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [ "tests/test_performance.py" ];
pythonImportsCheck = [ "json_repair" ];
meta = with lib; { 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 = licenses.mit; maintainers = with maintainers; [ greg ]; };}