git: e86f8937f1ba - main - devel/py-mypy: update 0.931 → 0.940, fix tests

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Thu, 21 Apr 2022 11:46:05 UTC
The branch main has been updated by amdmi3:

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

commit e86f8937f1ba35ad2815ac150b29bf4dd09c0612
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-07 13:18:55 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-21 11:43:40 +0000

    devel/py-mypy: update 0.931 → 0.940, fix tests
    
    PR:             263119
    Approved by:    maintainer timeout (sunpoet, 2 weeks)
---
 devel/py-mypy/Makefile | 12 +++++++-----
 devel/py-mypy/distinfo |  6 +++---
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/devel/py-mypy/Makefile b/devel/py-mypy/Makefile
index 566c70c66421..70fed7b7ed8e 100644
--- a/devel/py-mypy/Makefile
+++ b/devel/py-mypy/Makefile
@@ -1,7 +1,7 @@
 # Created by: Florian Limberger <flo@snakeoilproductions.net>
 
 PORTNAME=	mypy
-PORTVERSION=	0.931
+PORTVERSION=	0.940
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -15,9 +15,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mypy_extensions>=0.4.3:devel/py-mypy_extensions@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10:devel/py-typing-extensions@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typed-ast>=1.4.0<2:devel/py-typed-ast@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}virtualenv>=0:devel/py-virtualenv@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
 
-USES=		python:3.5+
+USES=		python:3.5+ pytest
 USE_PYTHON=	autoplist concurrent distutils
+PYTEST_BROKEN_TESTS=test_c_unit_test  # https://github.com/python/mypy/issues/12634
 
 NO_ARCH=	yes
 
@@ -33,7 +38,4 @@ DMYPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psutil>=4.0:sysutils/py-psutil@${PY_FL
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typed-ast>=1.4.0<2:devel/py-typed-ast@${PY_FLAVOR}
 .endif
 
-do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
-
 .include <bsd.port.post.mk>
diff --git a/devel/py-mypy/distinfo b/devel/py-mypy/distinfo
index 074989ffd983..31556313810e 100644
--- a/devel/py-mypy/distinfo
+++ b/devel/py-mypy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1643133757
-SHA256 (mypy-0.931.tar.gz) = 0038b21890867793581e4cb0d810829f5fd4441aa75796b53033af3aa30430ce
-SIZE (mypy-0.931.tar.gz) = 2729650
+TIMESTAMP = 1649334913
+SHA256 (mypy-0.940.tar.gz) = 71bec3d2782d0b1fecef7b1c436253544d81c1c0e9ca58190aed9befd8f081c5
+SIZE (mypy-0.940.tar.gz) = 2649669