mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 09:03:48 +00:00
67651d80bc
Python: several fixes
30 lines
865 B
Nix
30 lines
865 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, python, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Flask-Migrate";
|
|
version = "2.1.1";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b709ca8642559c3c5a81a33ab10839fa052177accd5ba821047a99db635255ed";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|