python3Packages.mlflow-{skinny,tracing}: move to PyPI wheel build

This commit is contained in:
gquetel 2026-05-19 16:11:35 +02:00
commit 5fb68dfd6a
2 changed files with 23 additions and 9 deletions

View file

@ -1,5 +1,7 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
mlflow,
# build-system
@ -30,10 +32,17 @@
buildPythonPackage (finalAttrs: {
pname = "mlflow-skinny";
inherit (mlflow) version src;
inherit (mlflow) version;
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "mlflow";
repo = "mlflow";
rev = "v${finalAttrs.version}";
hash = "sha256-OxhM+KCem0sb9cwtyzrUD/MGfoiiCfgU47qipYRDaFk=";
};
sourceRoot = "${finalAttrs.src.name}/libs/skinny";
build-system = [ setuptools ];
@ -69,5 +78,6 @@ buildPythonPackage (finalAttrs: {
meta = mlflow.meta // {
description = "Lightweight version of MLflow that is designed to minimize package size";
homepage = "https://github.com/mlflow/mlflow/tree/master/libs/skinny";
sourceProvenance = with lib.sourceTypes; [ fromSource ];
};
})

View file

@ -1,6 +1,7 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
mlflow,
# build-system
@ -15,9 +16,6 @@
packaging,
protobuf,
pydantic,
# tests
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "mlflow-tracing";
@ -25,13 +23,16 @@ buildPythonPackage (finalAttrs: {
pyproject = true;
__structuredAttrs = true;
inherit (mlflow) src;
src = fetchFromGitHub {
owner = "mlflow";
repo = "mlflow";
rev = "v${finalAttrs.version}";
hash = "sha256-OxhM+KCem0sb9cwtyzrUD/MGfoiiCfgU47qipYRDaFk=";
};
sourceRoot = "${finalAttrs.src.name}/libs/tracing";
build-system = [
setuptools
];
build-system = [ setuptools ];
dependencies = [
cachetools
@ -53,6 +54,9 @@ buildPythonPackage (finalAttrs: {
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 ];
maintainers = with lib.maintainers; [
GaetanLepage
gquetel
];
};
})