567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
50 lines
954 B
Nix
50 lines
954 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
alembic,
|
|
flask,
|
|
flask-script,
|
|
flask-sqlalchemy,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-migrate";
|
|
version = "4.1.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miguelgrinberg";
|
|
repo = "Flask-Migrate";
|
|
tag = "v${version}";
|
|
hash = "sha256-7xQu0Y6aM9WWuH2ImuaopbBS2jE9pVChekVp7SEMHCc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
alembic
|
|
flask
|
|
flask-sqlalchemy
|
|
];
|
|
|
|
pythonImportsCheck = [ "flask_migrate" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
flask-script
|
|
];
|
|
|
|
meta = {
|
|
description = "SQLAlchemy database migrations for Flask applications using Alembic";
|
|
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ gador ];
|
|
};
|
|
}
|