2021-09-26 12:46:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonOlder
|
2021-09-26 12:46:18 +00:00
|
|
|
, alembic
|
|
|
|
, flask
|
2023-10-09 19:29:22 +00:00
|
|
|
, flask-script
|
2022-08-12 12:06:08 +00:00
|
|
|
, flask-sqlalchemy
|
2023-02-02 18:25:31 +00:00
|
|
|
, pytestCheckHook
|
2023-03-15 16:39:30 +00:00
|
|
|
, setuptools
|
2021-09-26 12:46:18 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
pname = "flask-migrate";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "4.0.7";
|
2023-03-15 16:39:30 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "miguelgrinberg";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "Flask-Migrate";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-TnihrZ+JQ1XCBlFp6k8lrNpZr4P2/Z6AmFwWZbabz+8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
alembic
|
|
|
|
flask
|
2022-08-12 12:06:08 +00:00
|
|
|
flask-sqlalchemy
|
2021-09-26 12:46:18 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"flask_migrate"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
2023-10-09 19:29:22 +00:00
|
|
|
flask-script
|
2021-09-26 12:46:18 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SQLAlchemy database migrations for Flask applications using Alembic";
|
|
|
|
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
|
2021-09-26 12:46:18 +00:00
|
|
|
license = licenses.mit;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with maintainers; [ gador ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|