git: 521663ad09c5 - main - graphics/py-pyqtgraph: Fix test failure

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 30 Sep 2022 02:38:55 UTC
The branch main has been updated by yuri:

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

commit 521663ad09c5b4c3544fb7a0bba59dc9a1b7f977
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-09-30 02:38:20 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-09-30 02:38:20 +0000

    graphics/py-pyqtgraph: Fix test failure
---
 graphics/py-pyqtgraph/Makefile | 6 +++++-
 graphics/py-pyqtgraph/distinfo | 4 +++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/graphics/py-pyqtgraph/Makefile b/graphics/py-pyqtgraph/Makefile
index 80dbad756823..d4c3c6cc7dd9 100644
--- a/graphics/py-pyqtgraph/Makefile
+++ b/graphics/py-pyqtgraph/Makefile
@@ -1,9 +1,13 @@
 PORTNAME=	pyqtgraph
 DISTVERSION=	0.13.1
+PORTREVISION=	1
 CATEGORIES=	graphics science python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
+PATCH_SITES=	https://github.com/pyqtgraph/pyqtgraph/commit/
+PATCHFILES=	935914143d87f28575ea9d60bd9efada57b3bdd6.patch:-p1 # Fix renderView to not use mremap on FreeBSD, see https://github.com/pyqtgraph/pyqtgraph/pull/2445/
+
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Scientific graphics and GUI library for Python
 WWW=		https://www.pyqtgraph.org/
@@ -19,7 +23,7 @@ RUN_DEPENDS=	${PYNUMPY} \
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}qt5-pyqt>0:devel/py-qt5-pyqt@${PY_FLAVOR} # PyQtGraph requires one of PyQt5, PyQt6, PySide2 or PySide6
 
 USES=		python:3.8+
-USE_PYTHON=	distutils autoplist pytest # 1 test fails, see https://github.com/pyqtgraph/pyqtgraph/issues/2444
+USE_PYTHON=	distutils autoplist pytest
 
 NO_ARCH=	yes
 
diff --git a/graphics/py-pyqtgraph/distinfo b/graphics/py-pyqtgraph/distinfo
index 8dc8cdcc0051..c9f173e695aa 100644
--- a/graphics/py-pyqtgraph/distinfo
+++ b/graphics/py-pyqtgraph/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1664478657
+TIMESTAMP = 1664505472
 SHA256 (pyqtgraph-0.13.1.tar.gz) = 698f87f59db965727b33602a0b29058de21291d8b143dea878b50578aec0dc08
 SIZE (pyqtgraph-0.13.1.tar.gz) = 1364064
+SHA256 (935914143d87f28575ea9d60bd9efada57b3bdd6.patch) = b5cc2c0687bc1b6880d3ff055727257ae98b87ed5cea052eccdea08abcb89c84
+SIZE (935914143d87f28575ea9d60bd9efada57b3bdd6.patch) = 1160