nixpkgs/pkgs/development/python-modules/exa-py/default.nix
Ethan Carter Edwards 2e711aa564 python3Packages.exa-py: 2.13.1-unstable-2026-06-03 -> 2.14.0
Changelog: https://github.com/exa-labs/exa-py/releases/tag/v2.14.0

Only took some internal begging to get tags :)

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-06-17 11:21:58 -07:00

73 lines
1.3 KiB
Nix

{
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.14.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-pL5d79KdKlfv4l/M7PF8fs0gUEk4DYEKPm8PJ+pwFMc=";
};
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;
};
})