2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-10-11 05:15:48 +00:00
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
alembic,
|
|
|
|
buildPythonPackage,
|
2024-07-27 06:49:29 +00:00
|
|
|
cachetools,
|
2024-06-05 15:53:02 +00:00
|
|
|
click,
|
|
|
|
cloudpickle,
|
2024-10-11 05:15:48 +00:00
|
|
|
databricks-sdk,
|
2024-06-05 15:53:02 +00:00
|
|
|
docker,
|
|
|
|
flask,
|
|
|
|
gitpython,
|
|
|
|
graphene,
|
|
|
|
gunicorn,
|
|
|
|
importlib-metadata,
|
2024-10-11 05:15:48 +00:00
|
|
|
jinja2,
|
2024-06-05 15:53:02 +00:00
|
|
|
markdown,
|
|
|
|
matplotlib,
|
|
|
|
numpy,
|
2024-07-27 06:49:29 +00:00
|
|
|
opentelemetry-api,
|
|
|
|
opentelemetry-sdk,
|
2024-06-05 15:53:02 +00:00
|
|
|
packaging,
|
|
|
|
pandas,
|
|
|
|
protobuf,
|
|
|
|
pyarrow,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
scikit-learn,
|
|
|
|
scipy,
|
|
|
|
sqlalchemy,
|
|
|
|
sqlparse,
|
2024-10-11 05:15:48 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
aiohttp,
|
|
|
|
azure-core,
|
|
|
|
azure-storage-blob,
|
|
|
|
azure-storage-file,
|
|
|
|
boto3,
|
|
|
|
botocore,
|
|
|
|
catboost,
|
|
|
|
datasets,
|
|
|
|
fastapi,
|
|
|
|
google-cloud-storage,
|
|
|
|
httpx,
|
|
|
|
jwt,
|
|
|
|
keras,
|
|
|
|
langchain,
|
|
|
|
librosa,
|
|
|
|
moto,
|
|
|
|
opentelemetry-exporter-otlp,
|
|
|
|
optuna,
|
|
|
|
pydantic,
|
|
|
|
pyspark,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytorch-lightning,
|
|
|
|
sentence-transformers,
|
|
|
|
starlette,
|
|
|
|
statsmodels,
|
|
|
|
tensorflow,
|
|
|
|
torch,
|
|
|
|
transformers,
|
|
|
|
uvicorn,
|
|
|
|
xgboost,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mlflow";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "2.16.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mlflow";
|
|
|
|
repo = "mlflow";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-7W1gpVgJSN/iXoW987eCHfcOeE3D/ZJ2W/eilDdzOww=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
2024-04-21 15:54:59 +00:00
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
dependencies = [
|
2020-04-24 23:36:52 +00:00
|
|
|
alembic
|
2024-07-27 06:49:29 +00:00
|
|
|
cachetools
|
2020-04-24 23:36:52 +00:00
|
|
|
click
|
|
|
|
cloudpickle
|
2024-10-11 05:15:48 +00:00
|
|
|
databricks-sdk
|
2022-06-16 17:23:12 +00:00
|
|
|
docker
|
2020-04-24 23:36:52 +00:00
|
|
|
flask
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
2024-04-21 15:54:59 +00:00
|
|
|
graphene
|
2022-06-16 17:23:12 +00:00
|
|
|
gunicorn
|
|
|
|
importlib-metadata
|
2024-10-11 05:15:48 +00:00
|
|
|
jinja2
|
2023-04-12 12:48:02 +00:00
|
|
|
markdown
|
|
|
|
matplotlib
|
2020-04-24 23:36:52 +00:00
|
|
|
numpy
|
2024-07-27 06:49:29 +00:00
|
|
|
opentelemetry-api
|
|
|
|
opentelemetry-sdk
|
2022-06-16 17:23:12 +00:00
|
|
|
packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
pandas
|
|
|
|
protobuf
|
2023-04-12 12:48:02 +00:00
|
|
|
pyarrow
|
2020-04-24 23:36:52 +00:00
|
|
|
pyyaml
|
2022-06-16 17:23:12 +00:00
|
|
|
requests
|
2023-04-12 12:48:02 +00:00
|
|
|
scikit-learn
|
2022-06-16 17:23:12 +00:00
|
|
|
scipy
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlalchemy
|
2022-06-16 17:23:12 +00:00
|
|
|
sqlparse
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mlflow" ];
|
2022-01-19 23:45:15 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
aiohttp
|
|
|
|
azure-core
|
|
|
|
azure-storage-blob
|
|
|
|
azure-storage-file
|
|
|
|
boto3
|
|
|
|
botocore
|
|
|
|
catboost
|
|
|
|
datasets
|
|
|
|
fastapi
|
|
|
|
google-cloud-storage
|
|
|
|
httpx
|
|
|
|
jwt
|
|
|
|
keras
|
|
|
|
langchain
|
|
|
|
librosa
|
|
|
|
moto
|
|
|
|
opentelemetry-exporter-otlp
|
|
|
|
optuna
|
|
|
|
pydantic
|
|
|
|
pyspark
|
|
|
|
pytestCheckHook
|
|
|
|
pytorch-lightning
|
|
|
|
sentence-transformers
|
|
|
|
starlette
|
|
|
|
statsmodels
|
|
|
|
tensorflow
|
|
|
|
torch
|
|
|
|
transformers
|
|
|
|
uvicorn
|
|
|
|
xgboost
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Requires unpackaged `autogen`
|
|
|
|
"tests/autogen/test_autogen_autolog.py"
|
|
|
|
|
|
|
|
# Requires unpackaged `diviner`
|
|
|
|
"tests/diviner/test_diviner_model_export.py"
|
|
|
|
|
|
|
|
# Requires unpackaged `sktime`
|
|
|
|
"examples/sktime/test_sktime_model_export.py"
|
|
|
|
|
|
|
|
# Requires `fastai` which would cause a circular dependency
|
|
|
|
"tests/fastai/test_fastai_autolog.py"
|
|
|
|
"tests/fastai/test_fastai_model_export.py"
|
|
|
|
|
|
|
|
# Requires `spacy` which would cause a circular dependency
|
|
|
|
"tests/spacy/test_spacy_model_export.py"
|
|
|
|
|
|
|
|
# Requires `tensorflow.keras` which is not included in our outdated version of `tensorflow` (2.13.0)
|
|
|
|
"tests/gateway/providers/test_ai21labs.py"
|
|
|
|
"tests/tensorflow/test_keras_model_export.py"
|
|
|
|
"tests/tensorflow/test_keras_pyfunc_model_works_with_all_input_types.py"
|
|
|
|
"tests/tensorflow/test_mlflow_callback.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
# I (@GaetanLepage) gave up at enabling tests:
|
|
|
|
# - They require a lot of dependencies (some unpackaged);
|
|
|
|
# - Many errors occur at collection time;
|
|
|
|
# - Most (all ?) tests require internet access anyway.
|
2022-06-16 17:23:12 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Open source platform for the machine learning lifecycle";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mlflow";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/mlflow/mlflow";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/mlflow/mlflow/blob/v${version}/CHANGELOG.md";
|
2024-10-11 05:15:48 +00:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ tbenst ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|