mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-30 04:04:53 +00:00
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mlflow,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
cachetools,
|
|
databricks-sdk,
|
|
opentelemetry-api,
|
|
opentelemetry-proto,
|
|
opentelemetry-sdk,
|
|
packaging,
|
|
protobuf,
|
|
pydantic,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "mlflow-tracing";
|
|
inherit (mlflow) version;
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mlflow";
|
|
repo = "mlflow";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-GVa/O2nT0vJS6NG00NMGpyX+3Z+bbOarNe0ZZqCQrH8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail \
|
|
"setuptools<=82.0.1" \
|
|
"setuptools"
|
|
'';
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/libs/tracing";
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
cachetools
|
|
databricks-sdk
|
|
opentelemetry-api
|
|
opentelemetry-proto
|
|
opentelemetry-sdk
|
|
packaging
|
|
protobuf
|
|
pydantic
|
|
];
|
|
|
|
pythonImportsCheck = [ "mlflow.tracing" ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Open-Source SDK for observability and monitoring GenAI applications";
|
|
homepage = "https://github.com/mlflow/mlflow/tree/master/libs/tracing";
|
|
inherit (mlflow.meta) license;
|
|
maintainers = with lib.maintainers; [
|
|
GaetanLepage
|
|
gquetel
|
|
];
|
|
};
|
|
})
|