pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/py-flask-admin py-flask-admin: fix building for Py...
details: https://anonhg.NetBSD.org/pkgsrc/rev/65d02ff42b85
branches: trunk
changeset: 453901:65d02ff42b85
user: adam <adam%pkgsrc.org@localhost>
date: Fri Jun 04 05:18:01 2021 +0000
description:
py-flask-admin: fix building for Python < 3.7
diffstat:
www/py-flask-admin/Makefile | 5 ++-
www/py-flask-admin/distinfo | 3 +-
www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py | 15 ++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)
diffs (49 lines):
diff -r cf03bcf1d28e -r 65d02ff42b85 www/py-flask-admin/Makefile
--- a/www/py-flask-admin/Makefile Fri Jun 04 04:45:59 2021 +0000
+++ b/www/py-flask-admin/Makefile Fri Jun 04 05:18:01 2021 +0000
@@ -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 @@
${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 -r cf03bcf1d28e -r 65d02ff42b85 www/py-flask-admin/distinfo
--- a/www/py-flask-admin/distinfo Fri Jun 04 04:45:59 2021 +0000
+++ b/www/py-flask-admin/distinfo Fri Jun 04 05:18:01 2021 +0000
@@ -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 -r cf03bcf1d28e -r 65d02ff42b85 www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py Fri Jun 04 05:18:01 2021 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index