1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, alembic 6, flask 7, flask_script 8, flask_sqlalchemy 9, python 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 flask_script 37 ]; 38 39 checkPhase = '' 40 runHook preCheck 41 ${python.interpreter} -m unittest discover 42 runHook postCheck 43 ''; 44 45 meta = with lib; { 46 description = "SQLAlchemy database migrations for Flask applications using Alembic"; 47 homepage = "https://github.com/miguelgrinberg/Flask-Migrate"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ ]; 50 }; 51}