Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 25 lines 831 B view raw
1{ lib, buildPythonPackage, fetchPypi, isPy3k, glibcLocales, flask, flask_sqlalchemy, flask_script, alembic }: 2 3buildPythonPackage rec { 4 pname = "Flask-Migrate"; 5 version = "2.7.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "ae2f05671588762dd83a21d8b18c51fe355e86783e24594995ff8d7380dffe38"; 10 }; 11 12 checkInputs = [ flask_script ] ++ lib.optional isPy3k glibcLocales; 13 propagatedBuildInputs = [ flask flask_sqlalchemy alembic ]; 14 15 # tests invoke the flask cli which uses click and therefore has py3k encoding troubles 16 preCheck = lib.optionalString isPy3k '' 17 export LANG="en_US.UTF-8" 18 ''; 19 20 meta = with lib; { 21 description = "SQLAlchemy database migrations for Flask applications using Alembic"; 22 license = licenses.mit; 23 homepage = "https://github.com/miguelgrinberg/Flask-Migrate"; 24 }; 25}