Files
nixpkgs/pkgs/development/python-modules/flask-migrate/default.nix
T
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

47 lines
873 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, alembic
, flask
, flask_script
, flask-sqlalchemy
, unittestCheckHook
}:
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"
];
nativeCheckInputs = [
unittestCheckHook
flask_script
];
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; [ ];
};
}