Files
nixpkgs/pkgs/development/python-modules/flask-migrate/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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 ];
};
}