summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/py-flask-admin/Makefile5
-rw-r--r--www/py-flask-admin/distinfo3
-rw-r--r--www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py15
3 files changed, 21 insertions, 2 deletions
diff --git a/www/py-flask-admin/Makefile b/www/py-flask-admin/Makefile
index 2b640c735e8..e9b69a07267 100644
--- a/www/py-flask-admin/Makefile
+++ b/www/py-flask-admin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.26 2021/05/02 11:23:32 kleink Exp $
+# $NetBSD: Makefile,v 1.27 2021/06/04 05:18:01 adam Exp $
DISTNAME= Flask-Admin-1.5.8
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -19,5 +19,8 @@ post-extract:
${FIND} ${WRKSRC}/flask_admin/static -type f -exec ${CHMOD} a-x {} +
${FIND} ${WRKSRC}/flask_admin/templates -type f -exec ${CHMOD} a-x {} +
+pre-configure:
+ ${RM} ${WRKSRC}/flask_admin/tests/sqla/test_basic.py.orig
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-flask-admin/distinfo b/www/py-flask-admin/distinfo
index b3a26b836e8..4cb9536db8b 100644
--- a/www/py-flask-admin/distinfo
+++ b/www/py-flask-admin/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.23 2021/05/02 11:23:32 kleink Exp $
+$NetBSD: distinfo,v 1.24 2021/06/04 05:18:01 adam Exp $
SHA1 (Flask-Admin-1.5.8.tar.gz) = 39b82ede983033385e7f53ca9ab0c60ce4b247c1
RMD160 (Flask-Admin-1.5.8.tar.gz) = ad446585a3c5eddae75c0880c4927b84527b44c3
SHA512 (Flask-Admin-1.5.8.tar.gz) = 53e14ba6992b358280e69580fa9911539fb34069d08f43f658ef54387c6e2b700d3fb6d8e90a9ee3f8f3592eb936b76234b7afd93baa28d683683472e1d01283
Size (Flask-Admin-1.5.8.tar.gz) = 6642201 bytes
+SHA1 (patch-flask__admin_tests_sqla_test__basic.py) = 5b384dfd3d934561104dcf9dc03b76811ce28365
diff --git a/www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py b/www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py
new file mode 100644
index 00000000000..146d2009be9
--- /dev/null
+++ b/www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py
@@ -0,0 +1,15 @@
+$NetBSD: patch-flask__admin_tests_sqla_test__basic.py,v 1.1 2021/06/04 05:18:01 adam Exp $
+
+Fix building for Python < 3.7.
+
+--- flask_admin/tests/sqla/test_basic.py.orig 2021-06-04 05:13:49.000000000 +0000
++++ flask_admin/tests/sqla/test_basic.py
+@@ -1666,7 +1666,7 @@ def test_hybrid_property_nested():
+
+ @hybrid_property
+ def fullname(self):
+- return f'{self.firstname} {self.lastname}'
++ return self.firstname + ' ' + self.lastname
+
+ class Model2(db.Model):
+ id = db.Column(db.Integer, primary_key=True)