summary refs log blame commit diff
path: root/pkgs/development/python-modules/mlflow/default.nix
blob: add6ee40de4c7d798585a06f7ccaabc4d09d8090 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                        






             
       













                    

                           



                        
                     
                    


                          
                                                                    













                                                                                                                       
         













                      



                             
                                    
 
                    





                                                                            
{ lib, buildPythonPackage, fetchPypi, isPy27, fetchpatch
, alembic
, click
, cloudpickle
, requests
, six
, flask
, numpy
, scipy
, pandas
, python-dateutil
, protobuf
, GitPython
, pyyaml
, querystring_parser
, simplejson
, docker
, databricks-cli
, entrypoints
, sqlparse
, sqlalchemy
, gorilla
, gunicorn
, prometheus-flask-exporter
, importlib-metadata
}:

buildPythonPackage rec {
  pname = "mlflow";
  version = "1.23.1";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "03rfyhli7vbb1pz0zw75mdwj9pz3awxi3dadxn5glpwn953w6r5y";
  };

  # 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
    entrypoints
    sqlparse
    sqlalchemy
    gorilla
    gunicorn
    prometheus-flask-exporter
    importlib-metadata
  ];

  pythonImportsCheck = [ "mlflow" ];

  meta = with lib; {
    homepage = "https://github.com/mlflow/mlflow";
    description = "Open source platform for the machine learning lifecycle";
    license = licenses.asl20;
    maintainers = with maintainers; [ tbenst ];
  };
}