83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
88 lines
1.6 KiB
Nix
88 lines
1.6 KiB
Nix
{ lib
|
|
, alembic
|
|
, buildPythonPackage
|
|
, click
|
|
, cloudpickle
|
|
, databricks-cli
|
|
, docker
|
|
, entrypoints
|
|
, fetchpatch
|
|
, fetchPypi
|
|
, flask
|
|
, gitpython
|
|
, gorilla
|
|
, gunicorn
|
|
, importlib-metadata
|
|
, numpy
|
|
, packaging
|
|
, pandas
|
|
, prometheus-flask-exporter
|
|
, protobuf
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pyyaml
|
|
, querystring_parser
|
|
, requests
|
|
, scipy
|
|
, simplejson
|
|
, six
|
|
, sqlalchemy
|
|
, sqlparse
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mlflow";
|
|
version = "2.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-oRazzUW7+1CaFyO/1DiL21ZqPlBF483lOQ5mf1kUmKY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
alembic
|
|
click
|
|
cloudpickle
|
|
databricks-cli
|
|
docker
|
|
entrypoints
|
|
flask
|
|
gitpython
|
|
gorilla
|
|
gunicorn
|
|
importlib-metadata
|
|
numpy
|
|
packaging
|
|
pandas
|
|
prometheus-flask-exporter
|
|
protobuf
|
|
python-dateutil
|
|
pyyaml
|
|
querystring_parser
|
|
requests
|
|
scipy
|
|
simplejson
|
|
six
|
|
sqlalchemy
|
|
sqlparse
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"mlflow"
|
|
];
|
|
|
|
# run into https://stackoverflow.com/questions/51203641/attributeerror-module-alembic-context-has-no-attribute-config
|
|
# also, tests use conda so can't run on NixOS without buildFHSUserEnv
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Open source platform for the machine learning lifecycle";
|
|
homepage = "https://github.com/mlflow/mlflow";
|
|
changelog = "https://github.com/mlflow/mlflow/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ tbenst ];
|
|
};
|
|
}
|