1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonAtLeast,
6 flit-core,
7 alembic,
8 flask,
9 sqlalchemy,
10 pytestCheckHook,
11 flask-sqlalchemy,
12 flask-sqlalchemy-lite,
13}:
14
15buildPythonPackage rec {
16 pname = "flask-alembic";
17 version = "3.1.1";
18
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "pallets-eco";
23 repo = "flask-alembic";
24 tag = version;
25 hash = "sha256-iHJr9l3w1WwZXDl573IV7+A7RDcawGL20sxxhAQQ628=";
26 };
27
28 build-system = [ flit-core ];
29
30 dependencies = [
31 alembic
32 flask
33 sqlalchemy
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 flask-sqlalchemy
39 flask-sqlalchemy-lite
40 ];
41
42 pythonImportsCheck = [ "flask_alembic" ];
43
44 meta = with lib; {
45 # https://github.com/pallets-eco/flask-alembic/issues/47
46 broken = pythonAtLeast "3.13";
47 homepage = "https://github.com/pallets-eco/flask-alembic";
48 changelog = "https://github.com/pallets-eco/flask-alembic/blob/${src.tag}/CHANGES.md";
49 license = licenses.mit;
50 maintainers = with maintainers; [ erictapen ];
51 };
52}