git: 9bf6878d7bbf - main - devel/py-babelfish: unbreak with python310

Jan Beich jbeich at FreeBSD.org
Sun Jul 25 16:17:18 UTC 2021


The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9bf6878d7bbfcf4f03c2ba78c41ed5d5638bb811

commit 9bf6878d7bbfcf4f03c2ba78c41ed5d5638bb811
Author:     Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-07-25 14:48:43 +0000
Commit:     Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-07-25 16:17:04 +0000

    devel/py-babelfish: unbreak with python310
    
    >>> import babelfish
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/local/lib/python3.10/site-packages/babelfish/__init__.py", line 20, in <module>
        from .converters import (LanguageConverter, LanguageReverseConverter, LanguageEquivalenceConverter, CountryConverter,
      File "/usr/local/lib/python3.10/site-packages/babelfish/converters/__init__.py", line 11, in <module>
        class CaseInsensitiveDict(collections.MutableMapping):
    AttributeError: module 'collections' has no attribute 'MutableMapping'
---
 devel/py-babelfish/Makefile | 4 ++++
 devel/py-babelfish/distinfo | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/devel/py-babelfish/Makefile b/devel/py-babelfish/Makefile
index a5cb29c7cd88..dbfdfc0362db 100644
--- a/devel/py-babelfish/Makefile
+++ b/devel/py-babelfish/Makefile
@@ -2,10 +2,14 @@
 
 PORTNAME=	babelfish
 PORTVERSION=	0.5.5
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
+PATCH_SITES=	https://github.com/Diaoul/${PORTNAME}/commit/
+PATCHFILES+=	7667fb3179e4.patch:-p1 # https://github.com/Diaoul/babelfish/pull/29
+
 MAINTAINER=	wg at FreeBSD.org
 COMMENT=	Module to work with countries and languages
 
diff --git a/devel/py-babelfish/distinfo b/devel/py-babelfish/distinfo
index 9672b2abd88f..047efd50958d 100644
--- a/devel/py-babelfish/distinfo
+++ b/devel/py-babelfish/distinfo
@@ -1,2 +1,5 @@
+TIMESTAMP = 1446295117
 SHA256 (babelfish-0.5.5.tar.gz) = 8380879fa51164ac54a3e393f83c4551a275f03617f54a99d70151358e444104
 SIZE (babelfish-0.5.5.tar.gz) = 90398
+SHA256 (7667fb3179e4.patch) = 7f86e3500efc63a975871e4b9a7822e2583908335d9c81ab556f46100271c038
+SIZE (7667fb3179e4.patch) = 1733


More information about the dev-commits-ports-main mailing list