2017-05-30 13:39:20 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, python, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic
|
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-Migrate";
|
2017-06-01 18:10:41 +02:00
|
|
|
version = "2.0.4";
|
2017-05-30 13:39:20 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-06-01 18:10:41 +02:00
|
|
|
sha256 = "1e6dc83bed93aef9a4791d5daaa03b186c8ef5d96c99c7d88166da683c86e42d";
|
2017-05-30 13:39:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = optional isPy3k glibcLocales;
|
|
|
|
propagatedBuildInputs = [ flask flask_sqlalchemy flask_script alembic ];
|
|
|
|
|
|
|
|
# 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;
|
|
|
|
};
|
|
|
|
}
|