git: 20060115fdc4 - main - devel/py-mediapy: Update to 1.1.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 09:10:53 UTC
The branch main has been updated by sunpoet:

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

commit 20060115fdc4a3a81508f4acd4300cdbb7640f51
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 08:42:41 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 09:04:42 +0000

    devel/py-mediapy: Update to 1.1.2
    
    Changes:        https://github.com/google/mediapy/commits/main
---
 devel/py-mediapy/Makefile       |  7 +++++--
 devel/py-mediapy/distinfo       |  6 +++---
 devel/py-mediapy/files/setup.py | 29 +++++++++++++++++++++++++++++
 3 files changed, 37 insertions(+), 5 deletions(-)

diff --git a/devel/py-mediapy/Makefile b/devel/py-mediapy/Makefile
index de2ef538ea06..363b0754b9d9 100644
--- a/devel/py-mediapy/Makefile
+++ b/devel/py-mediapy/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	mediapy
-PORTVERSION=	1.1.0
+PORTVERSION=	1.1.2
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,9 +16,12 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipython>=0:devel/ipython@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR}
 
-USES=		python:3.6+
+USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
+post-patch:
+	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
+
 .include <bsd.port.mk>
diff --git a/devel/py-mediapy/distinfo b/devel/py-mediapy/distinfo
index 7803af80e049..c161f7c93c25 100644
--- a/devel/py-mediapy/distinfo
+++ b/devel/py-mediapy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1663672734
-SHA256 (mediapy-1.1.0.tar.gz) = 09e8e0882896eda9f51a9281e4c52203502592282fdd199f4ead2e9bda5cf771
-SIZE (mediapy-1.1.0.tar.gz) = 25365
+TIMESTAMP = 1669057775
+SHA256 (mediapy-1.1.2.tar.gz) = bb3f8fbf70ef9a10da8c8a8da428fed87b114fb0e1ecab39cabca18846bc28e2
+SIZE (mediapy-1.1.2.tar.gz) = 24481
diff --git a/devel/py-mediapy/files/setup.py b/devel/py-mediapy/files/setup.py
new file mode 100644
index 000000000000..96e269dc661f
--- /dev/null
+++ b/devel/py-mediapy/files/setup.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+# setup.py generated by flit for tools that don't yet use PEP 517
+
+from distutils.core import setup
+
+packages = \
+['mediapy']
+
+package_data = \
+{'': ['*']}
+
+install_requires = \
+['ipython', 'matplotlib', 'numpy', 'Pillow']
+
+extras_require = \
+{'dev': ['absl-py', 'pytest', 'pytest-xdist', 'pylint>=2.6.0']}
+
+setup(name='mediapy',
+      version='%%PORTVERSION%%',
+      description='Read/write/show images and videos in an IPython notebook',
+      author=None,
+      author_email='Google LLC <mediapy-owners@google.com>',
+      url=None,
+      packages=packages,
+      package_data=package_data,
+      install_requires=install_requires,
+      extras_require=extras_require,
+      python_requires='>=3.7',
+     )