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-06-28 23:13:55 +00:00
|
|
|
version = "3.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "00m76kgdkk0w5bfq8hbqszpyaqk0yxdvmz4s67lvd36pc7wfhhjd";
|
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";
|
|
|
|
};
|
|
|
|
}
|