depot/third_party/nixpkgs/pkgs/development/python-modules/flask-migrate/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

46 lines
888 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, alembic
, flask
, flask_script
, flask-sqlalchemy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "Flask-Migrate";
version = "4.0.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = pname;
rev = "v${version}";
hash = "sha256-6P5oIH/mVuMy4J71VIRD1p+qbvPUlq3COpytEgKz1qo=";
};
propagatedBuildInputs = [
alembic
flask
flask-sqlalchemy
];
pythonImportsCheck = [
"flask_migrate"
];
nativeCheckInputs = [
pytestCheckHook
flask_script
];
meta = with lib; {
description = "SQLAlchemy database migrations for Flask applications using Alembic";
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
license = licenses.mit;
maintainers = with maintainers; [ gador ];
};
}