diff options
author | nicoo <nicoo@debian.org> | 2024-05-03 18:59:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 18:59:16 +0000 |
commit | 7d110be5bc9b78b50325ed611e76cb7629a9a876 (patch) | |
tree | 72c01d089a3bc762ebc6a1ab1c74169de1a5cb34 | |
parent | 9afbfec80eb49ae9997b79cbc5250bf070146719 (diff) | |
parent | b0fa36c96c366ccd5849a0304ea44a7021dc1112 (diff) |
Merge #289835: mlflow 2.7.0 -> 2.12.1
Fixes multiple vulnerabilities
-rw-r--r-- | pkgs/development/python-modules/mlflow/default.nix | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/mlflow/default.nix b/pkgs/development/python-modules/mlflow/default.nix index 41ebc9545cef..cadd44ff3008 100644 --- a/pkgs/development/python-modules/mlflow/default.nix +++ b/pkgs/development/python-modules/mlflow/default.nix @@ -6,11 +6,11 @@ , databricks-cli , docker , entrypoints -, fetchpatch , fetchPypi , flask , gitpython , gorilla +, graphene , gunicorn , importlib-metadata , markdown @@ -28,9 +28,9 @@ , pyyaml , querystring_parser , requests +, setuptools , scikit-learn , scipy -, shap , simplejson , sqlalchemy , sqlparse @@ -38,27 +38,29 @@ buildPythonPackage rec { pname = "mlflow"; - version = "2.7.0"; - format = "setuptools"; + version = "2.12.1"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-3q8PXydgjpUm1p//zKcMgirJDqKQpvPkuz36GyCbARE="; + hash = "sha256-qpKuuyN5qcVITL6QHN93nVQIrJamQeSx+KLR/5dNt8k="; }; - postPatch = '' - substituteInPlace requirements/core-requirements.txt \ - --replace "gunicorn<21" "gunicorn" - ''; - # 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`. - nativeBuildInputs = [ pythonRelaxDepsHook ]; + nativeBuildInputs = [ + pythonRelaxDepsHook + setuptools + ]; pythonRemoveDeps = [ "shap" ]; - pythonRelaxDeps = [ "pytz" "pyarrow" ]; + pythonRelaxDeps = [ + "packaging" + "pytz" + "pyarrow" + ]; propagatedBuildInputs = [ alembic @@ -70,6 +72,7 @@ buildPythonPackage rec { flask gitpython gorilla + graphene gunicorn importlib-metadata markdown |