git: 8cdd499a216c - main - devel/py-mock: Update version 4.0.3=>5.0.1

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 11 Jan 2023 09:00:30 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8cdd499a216ca06e5d8279b85c9bbf9a9dcff494

commit 8cdd499a216ca06e5d8279b85c9bbf9a9dcff494
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-01-11 08:32:10 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-01-11 09:00:11 +0000

    devel/py-mock: Update version 4.0.3=>5.0.1
    
    - Add USE_PYTHON=pytest
    
    Relnotes: https://github.com/testing-cabal/mock/releases/tag/5.0.1
---
 devel/py-mock/Makefile | 9 ++-------
 devel/py-mock/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/devel/py-mock/Makefile b/devel/py-mock/Makefile
index 2c1fbd3d2f20..97934b545bfd 100644
--- a/devel/py-mock/Makefile
+++ b/devel/py-mock/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	mock
-PORTVERSION=	4.0.3
+PORTVERSION=	5.0.1
 CATEGORIES=	devel python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -10,16 +10,11 @@ WWW=		https://mock.readthedocs.org/en/latest/
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
-
 USES=		python:3.6+
 USE_GITHUB=	yes # tests not packages in PyPI sdist
 GH_ACCOUNT=	testing-cabal
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils pytest
 
 NO_ARCH=	yes
 
-do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts=
-
 .include <bsd.port.mk>
diff --git a/devel/py-mock/distinfo b/devel/py-mock/distinfo
index ff1440e643b5..50c5828e97e9 100644
--- a/devel/py-mock/distinfo
+++ b/devel/py-mock/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647072100
-SHA256 (testing-cabal-mock-4.0.3_GH0.tar.gz) = a6b89933b91a7cce566a999f29914e97e7e6d0002dff7fe2636d9b0028fcfa6d
-SIZE (testing-cabal-mock-4.0.3_GH0.tar.gz) = 80318
+TIMESTAMP = 1673397753
+SHA256 (testing-cabal-mock-5.0.1_GH0.tar.gz) = ea121e11ad4415b73617a86096f677e6288cb873698a14c44fdf8436a67cff2d
+SIZE (testing-cabal-mock-5.0.1_GH0.tar.gz) = 84539