1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pdm-backend, 6 tqdm, 7 hypothesis, 8 pytest, 9}: 10 11buildPythonPackage rec { 12 pname = "partial-json-parser"; 13 version = "0.2.1.1.post6"; 14 pyproject = true; 15 16 src = fetchPypi { 17 pname = "partial_json_parser"; 18 inherit version; 19 hash = "sha256-Q4lraJKWeCJMu+SISmpf6SUd7UswuLfX61aeX+6pOvw="; 20 }; 21 22 build-system = [ pdm-backend ]; 23 24 dependencies = [ ]; 25 26 doCheck = true; 27 28 pythonImportsCheck = [ "partial_json_parser" ]; 29 30 dev-dependencies = [ 31 hypothesis 32 tqdm 33 pytest 34 ]; 35 36 meta = with lib; { 37 description = "Parse partial JSON generated by LLM"; 38 homepage = "https://github.com/promplate/partial-json-parser"; 39 license = licenses.mit; 40 maintainers = [ ]; 41 }; 42}