git: b218eaaaa3f5 - main - misc/py-gpiozero: New port: Simple interface to GPIO devices with Raspberry Pi

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 27 Apr 2025 06:40:51 UTC
The branch main has been updated by yuri:

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

commit b218eaaaa3f5f400ee5826b5cf6551518b7d7660
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-04-27 06:40:40 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-04-27 06:40:48 +0000

    misc/py-gpiozero: New port: Simple interface to GPIO devices with Raspberry Pi
---
 misc/Makefile              |  1 +
 misc/py-gpiozero/Makefile  | 23 +++++++++++++++++++++++
 misc/py-gpiozero/distinfo  |  3 +++
 misc/py-gpiozero/pkg-descr |  2 ++
 4 files changed, 29 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index c160a72976f7..8731ee30231a 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -441,6 +441,7 @@
     SUBDIR += py-gguf
     SUBDIR += py-gluoncv
     SUBDIR += py-gluonnlp
+    SUBDIR += py-gpiozero
     SUBDIR += py-halo
     SUBDIR += py-hist
     SUBDIR += py-histoprint
diff --git a/misc/py-gpiozero/Makefile b/misc/py-gpiozero/Makefile
new file mode 100644
index 000000000000..87453b481070
--- /dev/null
+++ b/misc/py-gpiozero/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	gpiozero
+DISTVERSION=	2.0.1
+CATEGORIES=	misc python # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Simple interface to GPIO devices with Raspberry Pi
+WWW=		https://gpiozero.readthedocs.io/en/latest/ \
+		https://github.com/gpiozero/gpiozero
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+
+ONLY_FOR_ARCHS=		aarch64
+ONLY_FOR_ARCHS_REASON=	intended only for Raspberry Pi
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-gpiozero/distinfo b/misc/py-gpiozero/distinfo
new file mode 100644
index 000000000000..73afe8e2b67e
--- /dev/null
+++ b/misc/py-gpiozero/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1745735629
+SHA256 (gpiozero-2.0.1.tar.gz) = d4ea1952689ec7e331f9d4ebc9adb15f1d01c2c9dcfabb72e752c9869ab7e97e
+SIZE (gpiozero-2.0.1.tar.gz) = 136176
diff --git a/misc/py-gpiozero/pkg-descr b/misc/py-gpiozero/pkg-descr
new file mode 100644
index 000000000000..5e4bfb546c01
--- /dev/null
+++ b/misc/py-gpiozero/pkg-descr
@@ -0,0 +1,2 @@
+gpiozero is a simple interface to GPIO devices with Raspberry Pi,
+developed and maintained by Ben Nuttall and Dave Jones.