2021-01-24 00:29:22 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic }:
|
2017-05-30 12:39:20 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Migrate";
|
2021-02-24 23:02:18 +00:00
|
|
|
version = "2.7.0";
|
2017-05-30 12:39:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-24 23:02:18 +00:00
|
|
|
sha256 = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38";
|
2017-05-30 12:39:20 +01:00
|
|
|
};
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
checkInputs = [ flask_script ] ++ lib.optional isPy3k glibcLocales;
|
2019-06-11 23:51:04 +01:00
|
|
|
propagatedBuildInputs = [ flask flask_sqlalchemy alembic ];
|
2017-05-30 12:39:20 +01:00
|
|
|
|
|
|
|
# tests invoke the flask cli which uses click and therefore has py3k encoding troubles
|
2021-01-24 00:29:22 +00:00
|
|
|
preCheck = lib.optionalString isPy3k ''
|
2017-05-30 12:39:20 +01:00
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2017-05-30 12:39:20 +01:00
|
|
|
description = "SQLAlchemy database migrations for Flask applications using Alembic";
|
|
|
|
license = licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
|
2017-05-30 12:39:20 +01:00
|
|
|
};
|
|
|
|
}
|