pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-flask-admin
Module Name: pkgsrc
Committed By: adam
Date: Fri Jun 4 05:18:01 UTC 2021
Modified Files:
pkgsrc/www/py-flask-admin: Makefile distinfo
Added Files:
pkgsrc/www/py-flask-admin/patches:
patch-flask__admin_tests_sqla_test__basic.py
Log Message:
py-flask-admin: fix building for Python < 3.7
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/www/py-flask-admin/Makefile
cvs rdiff -u -r1.23 -r1.24 pkgsrc/www/py-flask-admin/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-flask-admin/Makefile
diff -u pkgsrc/www/py-flask-admin/Makefile:1.26 pkgsrc/www/py-flask-admin/Makefile:1.27
--- pkgsrc/www/py-flask-admin/Makefile:1.26 Sun May 2 11:23:32 2021
+++ pkgsrc/www/py-flask-admin/Makefile Fri Jun 4 05:18:01 2021
@@ -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"
Index: pkgsrc/www/py-flask-admin/distinfo
diff -u pkgsrc/www/py-flask-admin/distinfo:1.23 pkgsrc/www/py-flask-admin/distinfo:1.24
--- pkgsrc/www/py-flask-admin/distinfo:1.23 Sun May 2 11:23:32 2021
+++ pkgsrc/www/py-flask-admin/distinfo Fri Jun 4 05:18:01 2021
@@ -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
Added files:
Index: pkgsrc/www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py
diff -u /dev/null pkgsrc/www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py:1.1
--- /dev/null Fri Jun 4 05:18:01 2021
+++ pkgsrc/www/py-flask-admin/patches/patch-flask__admin_tests_sqla_test__basic.py Fri Jun 4 05:18:01 2021
@@ -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