Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ lib, buildPythonPackage, fetchFromGitHub,
# build poetry-core,
# deps httpcore, httpx, openai, pydantic, python-dotenv, requests, typing-extensions,
# tests pytest-asyncio, pytest-cov-stub, pytest-mock, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "exa-py"; version = "2.25.0"; pyproject = true; __structuredAttrs = true;
# pypi doesn't include tests but there aren't any upstream git tags src = fetchFromGitHub { owner = "exa-labs"; repo = "exa-py"; tag = "v${finalAttrs.version}"; hash = "sha256-TS9Q/PXayRdVFGKLcGhNOh+j+ByBiSwK/30AZiluNwU="; };
build-system = [ poetry-core ];
dependencies = [ httpcore httpx openai pydantic python-dotenv requests typing-extensions ];
pythonImportsCheck = [ "exa_py" ];
nativeCheckInputs = [ pytest-asyncio pytest-cov-stub pytest-mock pytestCheckHook ];
pytestFlags = [ "tests/" ];
meta = { description = "Official Python SDK for Exa, the web search API for AI"; homepage = "https://github.com/exa-labs/exa-py/"; changelog = "https://github.com/exa-labs/exa-py/releases/tag/v${finalAttrs.version}"; maintainers = with lib.maintainers; [ ethancedwards8 ]; license = lib.licenses.mit; };})