python3Packages.mlflow: Fix broken package

Add python dependencies prometheus-flask-exporter and importlib-metadata.
Relax alembic version constraint.
This commit is contained in:
harvidsen 2022-01-11 11:16:12 +01:00 committed by Frederik Rietdijk
parent 134fa81d6d
commit 6a0de2a2f2

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, isPy27
{ lib, buildPythonPackage, fetchPypi, isPy27, fetchpatch
, alembic
, click
, cloudpickle
@ -20,6 +20,8 @@
, sqlalchemy
, gorilla
, gunicorn
, prometheus-flask-exporter
, importlib-metadata
}:
buildPythonPackage rec {
@ -58,6 +60,17 @@ buildPythonPackage rec {
sqlalchemy
gorilla
gunicorn
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=";
})
];
meta = with lib; {
@ -65,7 +78,5 @@ buildPythonPackage rec {
description = "Open source platform for the machine learning lifecycle";
license = licenses.asl20;
maintainers = with maintainers; [ tbenst ];
# missing prometheus-flask-exporter, not packaged in nixpkgs
broken = true; # 2020-08-15
};
}