diff options
author | harvidsen <hakon.arvidsen@bkk.no> | 2022-01-11 11:16:12 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2022-01-16 09:38:43 +0100 |
commit | 6a0de2a2f2b4cf0f9bd963ab70e277c65dd03d29 (patch) | |
tree | 70c519ba6a351fe2a159f81fc0ede454b3b57de2 | |
parent | 134fa81d6dd39a07fa5d00aa9029bbf25f71bf58 (diff) |
python3Packages.mlflow: Fix broken package
Add python dependencies prometheus-flask-exporter and importlib-metadata. Relax alembic version constraint.
-rw-r--r-- | pkgs/development/python-modules/mlflow/default.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/mlflow/default.nix b/pkgs/development/python-modules/mlflow/default.nix index 8039bdb1547bb..658470ec72b8f 100644 --- a/pkgs/development/python-modules/mlflow/default.nix +++ b/pkgs/development/python-modules/mlflow/default.nix @@ -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 }; } |