1{ stdenv, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic }: 2 3with stdenv.lib; 4 5buildPythonPackage rec { 6 pname = "Flask-Migrate"; 7 version = "2.2.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "cd1b4e6cb829eeb41c02ad9202d83bef5f4b7a036dd9fad72ce96ad1e22efb07"; 12 }; 13 14 checkInputs = optional isPy3k glibcLocales; 15 propagatedBuildInputs = [ flask flask_sqlalchemy flask_script alembic ]; 16 17 # tests invoke the flask cli which uses click and therefore has py3k encoding troubles 18 preCheck = optionalString isPy3k '' 19 export LANG="en_US.UTF-8" 20 ''; 21 22 meta = { 23 description = "SQLAlchemy database migrations for Flask applications using Alembic"; 24 license = licenses.mit; 25 homepage = https://github.com/miguelgrinberg/Flask-Migrate; 26 }; 27}