1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, alembic 6, flask 7, flask_script 8, flask-sqlalchemy 9, unittestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "Flask-Migrate"; 14 version = "3.1.0"; 15 format = "setuptools"; 16 disabled = isPy27; 17 18 src = fetchFromGitHub { 19 owner = "miguelgrinberg"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "0zj7qpknvlhrh4fsp5sx4fwyx3sp41ynclka992zympm3xym9zyq"; 23 }; 24 25 propagatedBuildInputs = [ 26 alembic 27 flask 28 flask-sqlalchemy 29 ]; 30 31 pythonImportsCheck = [ 32 "flask_migrate" 33 ]; 34 35 checkInputs = [ 36 unittestCheckHook 37 flask_script 38 ]; 39 40 meta = with lib; { 41 description = "SQLAlchemy database migrations for Flask applications using Alembic"; 42 homepage = "https://github.com/miguelgrinberg/Flask-Migrate"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ ]; 45 }; 46}