git: 20a79f07509d - main - textproc/py-normality: Update to 2.3.3

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Thu, 28 Apr 2022 17:56:15 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=20a79f07509dcb441b005d7e6a90b5386e00de29

commit 20a79f07509dcb441b005d7e6a90b5386e00de29
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-28 17:52:59 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-04-28 17:54:58 +0000

    textproc/py-normality: Update to 2.3.3
    
    * Switch to new USES=pytest framework which fixes tests for py-normality
      and also py-fingerprints
    
    * Rebase existing patch with additional reference to existing PR.
    
    Changelog since 2.1.1:
    
    https://github.com/pudo/normality/compare/2.1.1...2.3.3
    
    PR:             263581
---
 textproc/py-normality/Makefile             | 11 ++++-------
 textproc/py-normality/distinfo             |  6 +++---
 textproc/py-normality/files/patch-setup.py | 14 ++++++++------
 3 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/textproc/py-normality/Makefile b/textproc/py-normality/Makefile
index 1465d2d33abd..e8fd70d0fcbd 100644
--- a/textproc/py-normality/Makefile
+++ b/textproc/py-normality/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	normality
-DISTVERSION=	2.1.1
+DISTVERSION=	2.3.3
 CATEGORIES=	textproc python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -11,10 +11,10 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}banal>=1.0.1:devel/py-banal@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}text-unidecode>=0:converters/py-text-unidecode@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}text-unidecode>=0:converters/py-text-unidecode@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}charset-normalizer>0:textproc/py-charset-normalizer@${PY_FLAVOR}
 
-USES=		python:3.5+
+USES=		python:3.5+ pytest
 USE_GITHUB=	yes
 GH_ACCOUNT=	pudo
 USE_PYTHON=	distutils autoplist
@@ -26,7 +26,4 @@ OPTIONS_DEFAULT=	ICU
 
 ICU_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyicu>=1.9.3:devel/py-pyicu@${PY_FLAVOR}
 
-do-test:
-	@cd ${WRKSRC} && ${SET_ENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
-
 .include <bsd.port.mk>
diff --git a/textproc/py-normality/distinfo b/textproc/py-normality/distinfo
index d6f815e55908..2d25c8351f48 100644
--- a/textproc/py-normality/distinfo
+++ b/textproc/py-normality/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1607595816
-SHA256 (pudo-normality-2.1.1_GH0.tar.gz) = 26aa1cd461344eb717d8b12f844003ff44ccb9a514c6c03322f355fe4f7e2222
-SIZE (pudo-normality-2.1.1_GH0.tar.gz) = 8485
+TIMESTAMP = 1650975096
+SHA256 (pudo-normality-2.3.3_GH0.tar.gz) = 8dc5ad1be2cc1edeabc5960419e61d07f35ffe4d51f8027181dd4f0c04bc962a
+SIZE (pudo-normality-2.3.3_GH0.tar.gz) = 9788
diff --git a/textproc/py-normality/files/patch-setup.py b/textproc/py-normality/files/patch-setup.py
index 0bbe1b60ddc7..8540308a4eb8 100644
--- a/textproc/py-normality/files/patch-setup.py
+++ b/textproc/py-normality/files/patch-setup.py
@@ -1,14 +1,16 @@
 Really exclude "tests" directory to be installed into
 ${PYTHONPREFIX_SITELIBDIR}
 
---- setup.py.orig	2020-06-21 09:47:38 UTC
+https://github.com/pudo/normality/pull/18
+
+--- setup.py.orig	2022-04-11 10:30:15 UTC
 +++ setup.py
 @@ -24,7 +24,7 @@ setup(
-     url='http://github.com/pudo/normality',
-     license='MIT',
-     package_data={'banal': ['py.typed']},
--    packages=find_packages(exclude=['ez_setup', 'examples', 'test']),
-+    packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
+     url="http://github.com/pudo/normality",
+     license="MIT",
+     package_data={"banal": ["py.typed"]},
+-    packages=find_packages(exclude=["ez_setup", "examples", "test"]),
++    packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
      namespace_packages=[],
      include_package_data=True,
      zip_safe=False,