8d28093ffb
GitOrigin-RevId: 31ffc50c571e6683e9ecc9dbcbd4a8e9914b4497
51 lines
949 B
Nix
51 lines
949 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy27
|
|
, alembic
|
|
, flask
|
|
, flask_script
|
|
, flask_sqlalchemy
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Flask-Migrate";
|
|
version = "3.1.0";
|
|
format = "setuptools";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "miguelgrinberg";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0zj7qpknvlhrh4fsp5sx4fwyx3sp41ynclka992zympm3xym9zyq";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
alembic
|
|
flask
|
|
flask_sqlalchemy
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"flask_migrate"
|
|
];
|
|
|
|
checkInputs = [
|
|
flask_script
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
${python.interpreter} -m unittest discover
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "SQLAlchemy database migrations for Flask applications using Alembic";
|
|
homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|