2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Migrate";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "57d6060839e3a7f150eaab6fe4e726d9e3e7cffe2150fb223d73f92421c6d1d9";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
checkInputs = [ flask_script ] ++ lib.optional isPy3k glibcLocales;
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ flask flask_sqlalchemy alembic ];
|
|
|
|
|
|
|
|
# tests invoke the flask cli which uses click and therefore has py3k encoding troubles
|
2021-02-05 17:12:51 +00:00
|
|
|
preCheck = lib.optionalString isPy3k ''
|
2020-04-24 23:36:52 +00:00
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
|
|
|
|
};
|
|
|
|
}
|