Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jul 2021 16:17:16 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9bf6878d7bbf - main - devel/py-babelfish: unbreak with python310
Message-ID:  <202107251617.16PGHGUv081669@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

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

commit 9bf6878d7bbfcf4f03c2ba78c41ed5d5638bb811
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-07-25 14:48:43 +0000
Commit:     Jan Beich <jbeich@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107251617.16PGHGUv081669>