Merge pull request #217294 from fabaff/flask-appbuilder-fix

python310Packages.flask-sqlalchemy: 3.0.2 -> 3.0.3, python310Packages.flask-appbuilder: mark as broken
This commit is contained in:
Fabian Affolter 2023-02-27 14:38:24 +01:00 committed by GitHub
commit 4af447d135
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 28 deletions

View File

@ -4,6 +4,7 @@
, marshmallow
, mock
, openapi-spec-validator
, packaging
, prance
, pytestCheckHook
, pythonOlder
@ -23,16 +24,26 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
pyyaml
prance
packaging
];
passthru.optional-dependencies = {
marshmallow = [
marshmallow
];
yaml = [
pyyaml
];
validation = [
openapi-spec-validator
prance
];
};
nativeCheckInputs = [
openapi-spec-validator
marshmallow
mock
pytestCheckHook
];
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
pythonImportsCheck = [
"apispec"

View File

@ -1,7 +1,6 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, apispec
, colorama
, click
@ -27,7 +26,7 @@
buildPythonPackage rec {
pname = "flask-appbuilder";
version = "4.1.3";
version = "4.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
@ -35,23 +34,9 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "Flask-AppBuilder";
inherit version;
hash = "sha256-8NaTr0RcnsVik/AB4g8QL+FkcRlgkkASFe8fXIvFt/A=";
hash = "sha256-rZbu0Bif5pOa/zu6MCrbGJpkqUdYzWyVgp6tqRzGyIc=";
};
patches = [
(fetchpatch {
# https://github.com/dpgaspar/Flask-AppBuilder/pull/1734
name = "flask-appbuilder-wtf3.patch";
url = "https://github.com/dpgaspar/Flask-AppBuilder/commit/bccb3d719cd3ceb872fe74a9ab304d74664fbf43.patch";
hash = "sha256-24mlS3HIs77wKOlwdHah5oks31OOmCBHmcafZT2ITOc=";
excludes = [
"requirements.txt"
"setup.py"
"examples/employees/app/views.py"
];
})
];
propagatedBuildInputs = [
apispec
colorama
@ -73,13 +58,13 @@ buildPythonPackage rec {
pyjwt
pyyaml
sqlalchemy-utils
];
] ++ apispec.optional-dependencies.yaml;
postPatch = ''
substituteInPlace setup.py \
--replace "apispec[yaml]>=3.3, <4" "apispec[yaml] >=3.3" \
--replace "Flask-WTF>=0.14.2, <1.0.0" "Flask-WTF" \
--replace "WTForms<3.0.0" "WTForms" \
--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"
'';
@ -94,7 +79,10 @@ buildPythonPackage rec {
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; [ costrouc ];
# Support for flask-sqlalchemy >= 3.0 is missing, https://github.com/dpgaspar/Flask-AppBuilder/pull/1940
broken = true;
};
}

View File

@ -1,12 +1,12 @@
{ lib
, buildPythonPackage
, fetchPypi
, pdm-pep517
, flask
, mock
, sqlalchemy
, pdm-pep517
, pytestCheckHook
, pythonOlder
, sqlalchemy
}:
buildPythonPackage rec {