Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 90 lines
Nix
at llvm-cleanup
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091{ lib, aiohttp, anthropic, buildPythonPackage, docstring-parser, fetchFromGitHub, openai, poetry-core, pydantic, pytest-examples, pytest-asyncio, pytestCheckHook, fastapi, diskcache, redis, pythonOlder, pythonRelaxDepsHook, rich, tenacity, typer,}:
buildPythonPackage rec { pname = "instructor"; version = "1.2.3"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "jxnl"; repo = "instructor"; rev = "refs/tags/${version}"; hash = "sha256-LmorlFKIG7iPAK4pDbQqjxjiwB1md3u52B4u5WlqqTk="; };
pythonRelaxDeps = [ "docstring-parser" "pydantic" ];
build-system = [ poetry-core ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [ aiohttp docstring-parser openai pydantic rich tenacity typer ];
nativeCheckInputs = [ anthropic fastapi redis diskcache pytest-asyncio pytest-examples pytestCheckHook ];
pythonImportsCheck = [ "instructor" ];
disabledTests = [ # Tests require OpenAI API key "test_partial" "successfully" ];
disabledTestPaths = [ # Tests require OpenAI API key "tests/test_distil.py" "tests/test_new_client.py" "tests/llm/" ];
meta = with lib; { description = "Structured outputs for llm"; homepage = "https://github.com/jxnl/instructor"; changelog = "https://github.com/jxnl/instructor/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ mic92 ]; mainProgram = "instructor"; };}