diff options
author | Danilo G. Baio <dbaio@FreeBSD.org> | 2020-09-23 21:17:30 +0000 |
---|---|---|
committer | Danilo G. Baio <dbaio@FreeBSD.org> | 2020-09-23 21:17:30 +0000 |
commit | 3bc9b74974c5efc26b11f87dff9aa9561e39a31b (patch) | |
tree | f765b3bf4c2d5f257a9dbdbc24bbe0ae1513e0e0 /security/py-signedjson/files/patch-signedjson-__init__.py | |
parent | a2cc225b1d45e9539765eb0479930e54a8bda984 (diff) | |
download | ports-3bc9b74974c5efc26b11f87dff9aa9561e39a31b.tar.gz ports-3bc9b74974c5efc26b11f87dff9aa9561e39a31b.zip |
MFH: r542025 r544404
Fix RUN_DEPENDS
- Bump PORTREVISION for dependency change
devel/py-importlib-metadata is not required for python 3.8+.
Update to 1.2.0
Changes: https://github.com/matrix-org/python-canonicaljson/blob/master/CHANGES.md
MFH: r542200 (partial)
Update Python requirements for security/py-signedjson (avoid break bulk -a)
PR: 249375
Approved by: ports-secteam (fluffy)
Notes
Notes:
svn path=/branches/2020Q3/; revision=549855
Diffstat (limited to 'security/py-signedjson/files/patch-signedjson-__init__.py')
-rw-r--r-- | security/py-signedjson/files/patch-signedjson-__init__.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/security/py-signedjson/files/patch-signedjson-__init__.py b/security/py-signedjson/files/patch-signedjson-__init__.py new file mode 100644 index 000000000000..039fce0399ed --- /dev/null +++ b/security/py-signedjson/files/patch-signedjson-__init__.py @@ -0,0 +1,16 @@ +Obtained from: https://github.com/matrix-org/python-signedjson/commit/c40c83f844fee3c1c7b0c5d1508f87052334b4e5 + +--- signedjson/__init__.py.orig 2020-03-27 19:41:34 UTC ++++ signedjson/__init__.py +@@ -12,7 +12,10 @@ + # See the License for the specific language governing permissions and + # limitations under the License. + +-from importlib_metadata import version, PackageNotFoundError ++try: ++ from importlib.metadata import version, PackageNotFoundError ++except ImportError: # pragma: nocover ++ from importlib_metadata import version, PackageNotFoundError + + try: + __version__ = version(__name__) |