1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
{
lib,
buildPythonPackage,
fetchPypi,
apispec,
colorama,
click,
email-validator,
flask,
flask-babel,
flask-limiter,
flask-login,
flask-openid,
flask-sqlalchemy,
flask-wtf,
flask-jwt-extended,
jsonschema,
marshmallow,
marshmallow-sqlalchemy,
python-dateutil,
pythonOlder,
prison,
pyjwt,
pyyaml,
sqlalchemy-utils,
}:
buildPythonPackage rec {
pname = "flask-appbuilder";
version = "4.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Flask-AppBuilder";
inherit version;
hash = "sha256-CoQ5/pOR1xy71koUm1uwTJDLTDROTjJQMW9ZcgtzV50=";
};
propagatedBuildInputs = [
apispec
colorama
click
email-validator
flask
flask-babel
flask-limiter
flask-login
flask-openid
flask-sqlalchemy
flask-wtf
flask-jwt-extended
jsonschema
marshmallow
marshmallow-sqlalchemy
python-dateutil
prison
pyjwt
pyyaml
sqlalchemy-utils
] ++ apispec.optional-dependencies.yaml;
postPatch = ''
substituteInPlace setup.py \
--replace "apispec[yaml]>=3.3, <6" "apispec[yaml]" \
--replace "Flask-SQLAlchemy>=2.4, <3" "Flask-SQLAlchemy" \
--replace "Flask-Babel>=1, <3" "Flask-Babel" \
--replace "marshmallow-sqlalchemy>=0.22.0, <0.27.0" "marshmallow-sqlalchemy" \
--replace "prison>=0.2.1, <1.0.0" "prison"
'';
# Majority of tests require network access or mongo
doCheck = false;
pythonImportsCheck = [ "flask_appbuilder" ];
meta = with lib; {
description = "Application development framework, built on top of Flask";
homepage = "https://github.com/dpgaspar/flask-appbuilder/";
changelog = "https://github.com/dpgaspar/Flask-AppBuilder/blob/v${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
# Support for flask-sqlalchemy >= 3.0 is missing, https://github.com/dpgaspar/Flask-AppBuilder/pull/1940
broken = true;
};
}
|