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