From 94f62695d1911ee87843651a403039ea747763f3 Mon Sep 17 00:00:00 2001 From: tbenst Date: Sun, 24 Nov 2019 16:14:12 -0800 Subject: [PATCH] pythonPackages.mlflow: init at 1.4.0 --- .../python-modules/mlflow/default.nix | 69 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 71 insertions(+) create mode 100644 pkgs/development/python-modules/mlflow/default.nix diff --git a/pkgs/development/python-modules/mlflow/default.nix b/pkgs/development/python-modules/mlflow/default.nix new file mode 100644 index 000000000000..8eb0ca7c6b8e --- /dev/null +++ b/pkgs/development/python-modules/mlflow/default.nix @@ -0,0 +1,69 @@ +{ stdenv, buildPythonPackage, fetchPypi +, alembic +, click +, cloudpickle +, requests +, six +, flask +, numpy +, pandas +, python-dateutil +, protobuf +, GitPython +, pyyaml +, querystring_parser +, simplejson +, docker +, databricks-cli +, entrypoints +, sqlparse +, sqlalchemy +, gorilla +, gunicorn +, pytest +}: + +buildPythonPackage rec { + pname = "mlflow"; + version = "1.4.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "9116d82be380c32fa465049d14b217c4c200ad11614f4c6674e6b524b2935206"; + }; + + # 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 + ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/mlflow/mlflow"; + description = "Open source platform for the machine learning lifecycle"; + license = licenses.asl20; + maintainers = with maintainers; [ tbenst ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e000a4a8d5f7..c27b05d8a1ab 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2929,6 +2929,8 @@ in { mlrose = callPackage ../development/python-modules/mlrose { }; + mlflow = callPackage ../development/python-modules/mlflow { }; + mt-940 = callPackage ../development/python-modules/mt-940 { }; mwlib = callPackage ../development/python-modules/mwlib { };