2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic }:
|
2017-05-30 12:39:20 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Migrate";
|
2019-06-11 23:51:04 +01:00
|
|
|
version = "2.5.2";
|
2017-05-30 12:39:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-11 23:51:04 +01:00
|
|
|
sha256 = "00nm76w4xymsiih6hq8y46wp026v7zkzq15cx39hp929ba3z2vx9";
|
2017-05-30 12:39:20 +01:00
|
|
|
};
|
|
|
|
|
2019-06-11 23:51:04 +01:00
|
|
|
checkInputs = [ flask_script ] ++ optional isPy3k glibcLocales;
|
|
|
|
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
|
|
|
|
preCheck = optionalString isPy3k ''
|
|
|
|
export LANG="en_US.UTF-8"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SQLAlchemy database migrations for Flask applications using Alembic";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://github.com/miguelgrinberg/Flask-Migrate;
|
|
|
|
};
|
|
|
|
}
|