2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
alembic,
|
|
|
|
buildPythonPackage,
|
2024-07-27 06:49:29 +00:00
|
|
|
cachetools,
|
2024-06-05 15:53:02 +00:00
|
|
|
click,
|
|
|
|
cloudpickle,
|
|
|
|
databricks-cli,
|
|
|
|
docker,
|
|
|
|
entrypoints,
|
|
|
|
fetchPypi,
|
|
|
|
flask,
|
|
|
|
gitpython,
|
|
|
|
gorilla,
|
|
|
|
graphene,
|
|
|
|
gunicorn,
|
|
|
|
importlib-metadata,
|
|
|
|
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,
|
|
|
|
prometheus-flask-exporter,
|
|
|
|
protobuf,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
pyarrow,
|
|
|
|
pytz,
|
|
|
|
pyyaml,
|
|
|
|
querystring-parser,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
scikit-learn,
|
|
|
|
scipy,
|
|
|
|
simplejson,
|
|
|
|
sqlalchemy,
|
|
|
|
sqlparse,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mlflow";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.14.3";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-KSyuS4NXSgyyIxF+IkyqZ5iTMHivAjNxnCthK+pkVhc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
# Remove currently broken dependency `shap`, a model explainability package.
|
|
|
|
# This seems quite unprincipled especially with tests not being enabled,
|
|
|
|
# but not mlflow has a 'skinny' install option which does not require `shap`.
|
|
|
|
pythonRemoveDeps = [ "shap" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDeps = [
|
2024-09-19 14:19:46 +00:00
|
|
|
"gunicorn"
|
2024-04-21 15:54:59 +00:00
|
|
|
"packaging"
|
|
|
|
"pytz"
|
|
|
|
"pyarrow"
|
|
|
|
];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
alembic
|
2024-07-27 06:49:29 +00:00
|
|
|
cachetools
|
2020-04-24 23:36:52 +00:00
|
|
|
click
|
|
|
|
cloudpickle
|
2022-06-16 17:23:12 +00:00
|
|
|
databricks-cli
|
|
|
|
docker
|
|
|
|
entrypoints
|
2020-04-24 23:36:52 +00:00
|
|
|
flask
|
2022-12-17 10:02:37 +00:00
|
|
|
gitpython
|
2022-06-16 17:23:12 +00:00
|
|
|
gorilla
|
2024-04-21 15:54:59 +00:00
|
|
|
graphene
|
2022-06-16 17:23:12 +00:00
|
|
|
gunicorn
|
|
|
|
importlib-metadata
|
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
|
2022-06-16 17:23:12 +00:00
|
|
|
prometheus-flask-exporter
|
2020-04-24 23:36:52 +00:00
|
|
|
protobuf
|
2023-04-12 12:48:02 +00:00
|
|
|
pyarrow
|
2024-07-27 06:49:29 +00:00
|
|
|
python-dateutil
|
2023-04-29 16:46:19 +00:00
|
|
|
pytz
|
2020-04-24 23:36:52 +00:00
|
|
|
pyyaml
|
2024-01-13 08:15:51 +00:00
|
|
|
querystring-parser
|
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
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools
|
2023-04-12 12:48:02 +00:00
|
|
|
#shap
|
2020-04-24 23:36:52 +00:00
|
|
|
simplejson
|
|
|
|
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
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
# no tests in PyPI dist
|
2022-06-16 17:23:12 +00:00
|
|
|
# run into https://stackoverflow.com/questions/51203641/attributeerror-module-alembic-context-has-no-attribute-config
|
2023-04-29 16:46:19 +00:00
|
|
|
# also, tests use conda so can't run on NixOS without buildFHSEnv
|
2022-06-16 17:23:12 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
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";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ tbenst ];
|
|
|
|
};
|
|
|
|
}
|