55 opentelemetry-exporter-otlp,
61 sentence-transformers,
71 buildPythonPackage rec {
76 src = fetchFromGitHub {
79 rev = "refs/tags/v${version}";
80 hash = "sha256-s3t6RAJh129d5XJKtMNxS0wgGO4mKbAfMCXDBXEKBxM=";
83 # Remove currently broken dependency `shap`, a model explainability package.
84 # This seems quite unprincipled especially with tests not being enabled,
85 # but not mlflow has a 'skinny' install option which does not require `shap`.
86 pythonRemoveDeps = [ "shap" ];
96 build-system = [ setuptools ];
128 pythonImportsCheck = [ "mlflow" ];
130 nativeCheckInputs = [
147 opentelemetry-exporter-otlp
153 sentence-transformers
163 disabledTestPaths = [
164 # Requires unpackaged `autogen`
165 "tests/autogen/test_autogen_autolog.py"
167 # Requires unpackaged `diviner`
168 "tests/diviner/test_diviner_model_export.py"
170 # Requires unpackaged `sktime`
171 "examples/sktime/test_sktime_model_export.py"
173 # Requires `fastai` which would cause a circular dependency
174 "tests/fastai/test_fastai_autolog.py"
175 "tests/fastai/test_fastai_model_export.py"
177 # Requires `spacy` which would cause a circular dependency
178 "tests/spacy/test_spacy_model_export.py"
180 # Requires `tensorflow.keras` which is not included in our outdated version of `tensorflow` (2.13.0)
181 "tests/gateway/providers/test_ai21labs.py"
182 "tests/tensorflow/test_keras_model_export.py"
183 "tests/tensorflow/test_keras_pyfunc_model_works_with_all_input_types.py"
184 "tests/tensorflow/test_mlflow_callback.py"
187 # I (@GaetanLepage) gave up at enabling tests:
188 # - They require a lot of dependencies (some unpackaged);
189 # - Many errors occur at collection time;
190 # - Most (all ?) tests require internet access anyway.
194 description = "Open source platform for the machine learning lifecycle";
195 mainProgram = "mlflow";
196 homepage = "https://github.com/mlflow/mlflow";
197 changelog = "https://github.com/mlflow/mlflow/blob/v${version}/CHANGELOG.md";
198 license = lib.licenses.asl20;
199 maintainers = with lib.maintainers; [ tbenst ];