diff --git a/pkgs/development/python-modules/mlflow/default.nix b/pkgs/development/python-modules/mlflow/default.nix index 10c69b076112..088318bc2e02 100644 --- a/pkgs/development/python-modules/mlflow/default.nix +++ b/pkgs/development/python-modules/mlflow/default.nix @@ -1,76 +1,86 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27, fetchpatch +{ lib , alembic +, buildPythonPackage , click , cloudpickle -, requests -, six -, flask -, numpy -, scipy -, pandas -, python-dateutil -, protobuf -, GitPython -, pyyaml -, querystring_parser -, simplejson -, docker , databricks-cli +, docker , entrypoints -, sqlparse -, sqlalchemy +, fetchpatch +, fetchPypi +, flask +, GitPython , gorilla , gunicorn -, prometheus-flask-exporter , 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 = "1.25.1"; - disabled = isPy27; + version = "1.26.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-jDePRRbWNz+VvFe2x8LcpD8mUNSc7lq2ucNFf8RvBgA="; + hash = "sha256-2D1glQkovCY0lN0kfxGeoLigTkkPpij13mTeou7CAw4="; }; - # 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 - scipy - pandas - python-dateutil - protobuf - GitPython - pyyaml - querystring_parser - simplejson - docker databricks-cli + docker entrypoints - sqlparse - sqlalchemy + flask + GitPython gorilla gunicorn - prometheus-flask-exporter importlib-metadata + numpy + packaging + pandas + prometheus-flask-exporter + protobuf + python-dateutil + pyyaml + querystring_parser + requests + scipy + simplejson + six + sqlalchemy + sqlparse ]; - pythonImportsCheck = [ "mlflow" ]; + 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; { - homepage = "https://github.com/mlflow/mlflow"; description = "Open source platform for the machine learning lifecycle"; + homepage = "https://github.com/mlflow/mlflow"; license = licenses.asl20; maintainers = with maintainers; [ tbenst ]; };