29 lines
970 B
Nix
29 lines
970 B
Nix
{ lib
|
|
, python3Packages
|
|
, fetchPypi
|
|
}:
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "agentops";
|
|
version = "0.4.21";
|
|
pyproject = true;
|
|
build-system = with python3Packages; [ hatchling ];
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-R3Wcbf1upYutL3dkJX5HeMsuNK4YDO9kL2D1atztZRA=";
|
|
};
|
|
# Bypasses strict dependency version checks that fail in Nixpkgs
|
|
pythonRelaxDeps = [ "packaging" "psutil" "termcolor" ];
|
|
propagatedBuildInputs = with python3Packages; [
|
|
pydantic requests httpx websockets aiohttp
|
|
opentelemetry-api opentelemetry-exporter-otlp-proto-http
|
|
opentelemetry-instrumentation opentelemetry-sdk opentelemetry-semantic-conventions
|
|
ordered-set packaging psutil pyyaml termcolor wrapt
|
|
];
|
|
pythonImportsCheck = [ "agentops" ];
|
|
meta = with lib; {
|
|
description = "Observability and DevTool Platform for AI Agents";
|
|
homepage = "https://github.com/AgentOps-AI/agentops";
|
|
license = licenses.mit;
|
|
};
|
|
}
|