nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 alembic,
6 flask,
7 flask-script,
8 flask-sqlalchemy,
9 pytestCheckHook,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "flask-migrate";
15 version = "4.1.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "miguelgrinberg";
20 repo = "Flask-Migrate";
21 tag = "v${version}";
22 hash = "sha256-7xQu0Y6aM9WWuH2ImuaopbBS2jE9pVChekVp7SEMHCc=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 alembic
29 flask
30 flask-sqlalchemy
31 ];
32
33 pythonImportsCheck = [ "flask_migrate" ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 flask-script
38 ];
39
40 meta = {
41 description = "SQLAlchemy database migrations for Flask applications using Alembic";
42 homepage = "https://github.com/miguelgrinberg/Flask-Migrate";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ gador ];
45 };
46}