Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies appdirs, cryptography, httpx, opentelemetry-api, opentelemetry-exporter-otlp-proto-http, opentelemetry-sdk, packaging, portalocker, pydantic, pyjwt, rich, tomli,
# tests pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "crewai-core"; version = "1.15.18"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "crewAIInc"; repo = "crewAI"; tag = finalAttrs.version; hash = "sha256-A1nhvn4jdfjTiLfYldXsIUV7lGGqa1FDiSh0KfB5Ssk="; };
sourceRoot = "${finalAttrs.src.name}/lib/crewai-core";
build-system = [ hatchling ];
pythonRelaxDeps = [ "opentelemetry-api" "opentelemetry-exporter-otlp-proto-http" "opentelemetry-sdk" "portalocker" "pydantic" "tomli" ];
dependencies = [ appdirs cryptography httpx opentelemetry-api opentelemetry-exporter-otlp-proto-http opentelemetry-sdk packaging portalocker pydantic pyjwt rich tomli ];
pythonImportsCheck = [ "crewai_core" ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests" ];
pytestFlags = [ # Avoid loading the repository-wide conftest.py (needs many optional test deps) "--confcutdir=tests" # Drop addopts from the repository-wide pyproject.toml (xdist, socket, timeout) "--override-ini=addopts=" ];
meta = { description = "Shared utilities for CrewAI (version, paths, user-data, telemetry, printer)"; homepage = "https://github.com/crewAIInc/crewAI/tree/main/lib/crewai-core"; changelog = "https://github.com/crewAIInc/crewAI/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; };})