2022-01-19 23:45:15 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
, alembic
|
|
|
|
, click
|
|
|
|
, cloudpickle
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, flask
|
|
|
|
, numpy
|
|
|
|
, pandas
|
|
|
|
, python-dateutil
|
|
|
|
, protobuf
|
|
|
|
, GitPython
|
|
|
|
, pyyaml
|
|
|
|
, querystring_parser
|
|
|
|
, simplejson
|
|
|
|
, docker
|
|
|
|
, databricks-cli
|
|
|
|
, entrypoints
|
|
|
|
, sqlparse
|
|
|
|
, sqlalchemy
|
|
|
|
, gorilla
|
|
|
|
, gunicorn
|
2022-01-19 23:45:15 +00:00
|
|
|
, prometheus-flask-exporter
|
|
|
|
, importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mlflow";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "1.22.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "f680390715e436ae38cf7056ec91030fc9eb67cc631226f28ff9504fbe395add";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
alembic
|
|
|
|
click
|
|
|
|
cloudpickle
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
flask
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
python-dateutil
|
|
|
|
protobuf
|
|
|
|
GitPython
|
|
|
|
pyyaml
|
|
|
|
querystring_parser
|
|
|
|
simplejson
|
|
|
|
docker
|
|
|
|
databricks-cli
|
|
|
|
entrypoints
|
|
|
|
sqlparse
|
|
|
|
sqlalchemy
|
|
|
|
gorilla
|
|
|
|
gunicorn
|
2022-01-19 23:45:15 +00:00
|
|
|
prometheus-flask-exporter
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Relex alembic version, https://github.com/mlflow/mlflow/pull/5245
|
|
|
|
(fetchpatch {
|
|
|
|
name = "relax-alembic-version.patch";
|
|
|
|
url = "https://github.com/mlflow/mlflow/commit/945eb4b67f315c0b2c4018b1df006fde910f115f.patch";
|
|
|
|
sha256 = "sha256-jETVEPzlNe0PvFZVOi1SwgJELfx/KCeq6REL3vl+YT0=";
|
|
|
|
})
|
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
|
|
|
homepage = "https://github.com/mlflow/mlflow";
|
|
|
|
description = "Open source platform for the machine learning lifecycle";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ tbenst ];
|
|
|
|
};
|
|
|
|
}
|