python3Packages.flask-appbuilder: unbreak
This commit is contained in:
parent
92c9d7975a
commit
e7115b7da4
@ -6,6 +6,7 @@
|
|||||||
, colorama
|
, colorama
|
||||||
, click
|
, click
|
||||||
, email_validator
|
, email_validator
|
||||||
|
, fetchpatch
|
||||||
, flask
|
, flask
|
||||||
, flask-babel
|
, flask-babel
|
||||||
, flask_login
|
, flask_login
|
||||||
@ -20,21 +21,27 @@
|
|||||||
, python-dateutil
|
, python-dateutil
|
||||||
, prison
|
, prison
|
||||||
, pyjwt
|
, pyjwt
|
||||||
|
, pyyaml
|
||||||
, sqlalchemy-utils
|
, sqlalchemy-utils
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flask-appbuilder";
|
pname = "flask-appbuilder";
|
||||||
version = "3.1.1";
|
version = "3.2.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
pname = "Flask-AppBuilder";
|
pname = "Flask-AppBuilder";
|
||||||
inherit version;
|
inherit version;
|
||||||
sha256 = "076b020b0ba125339a2e710e74eab52648cde2b18599f7cb0fa1eada9bbb648c";
|
sha256 = "sha256-+ZYrn2LnVORyYsnZtsH3JX+4XbGgAZZ/Eh6O5gUP+y4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
patches = [
|
||||||
nose
|
(fetchpatch {
|
||||||
|
name = "flask_jwt_extended-and-pyjwt-patch";
|
||||||
|
url = "https://github.com/dpgaspar/Flask-AppBuilder/commit/7097a7b133f27c78d2b54d2a46e4a4c24478a066.patch";
|
||||||
|
sha256 = "sha256-ZpY8+2Hoz3z01GVtw2OIbQcsmAwa7iwilFWzgcGhY1w=";
|
||||||
|
includes = [ "flask_appbuilder/security/manager.py" "setup.py" ];
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -56,22 +63,23 @@ buildPythonPackage rec {
|
|||||||
python-dateutil
|
python-dateutil
|
||||||
prison
|
prison
|
||||||
pyjwt
|
pyjwt
|
||||||
|
pyyaml
|
||||||
sqlalchemy-utils
|
sqlalchemy-utils
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "apispec[yaml]>=3.3, <4" "apispec" \
|
--replace "apispec[yaml]>=3.3, <4" "apispec[yaml] >=3.3, <5" \
|
||||||
--replace "Flask-Login>=0.3, <0.5" "Flask-Login" \
|
--replace "Flask-Login>=0.3, <0.5" "Flask-Login >=0.3, <0.6" \
|
||||||
--replace "Flask-Babel>=1, <2" "Flask-Babel" \
|
--replace "Flask-Babel>=1, <2" "Flask-Babel >=1, <3" \
|
||||||
--replace "marshmallow-sqlalchemy>=0.22.0, <0.24.0" "marshmallow-sqlalchemy" \
|
--replace "marshmallow-sqlalchemy>=0.22.0, <0.24.0" "marshmallow-sqlalchemy >=0.22.0, <0.25.0"
|
||||||
--replace "prison>=0.1.3, <1.0.0" "prison"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
# majority of tests require network access or mongo
|
# majority of tests require network access or mongo
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "flask_appbuilder" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple and rapid application development framework, built on top of Flask";
|
description = "Simple and rapid application development framework, built on top of Flask";
|
||||||
homepage = "https://github.com/dpgaspar/flask-appbuilder/";
|
homepage = "https://github.com/dpgaspar/flask-appbuilder/";
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "prison";
|
pname = "prison";
|
||||||
version = "0.1.2";
|
version = "0.1.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "betodealmeida";
|
owner = "betodealmeida";
|
||||||
repo = "python-rison";
|
repo = "python-rison";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "14vb468iznf9416z993bbqihywp9ibyslw5vp67wfr200zyxjwak";
|
sha256 = "sha256-qor40vUQeTdlO3vwug3GGNX5vkNaF0H7EWlRdsY4bvc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
Loading…
Reference in New Issue
Block a user