aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-18 05:50:53 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-18 06:12:59 +0000
commit0b36a7a5161bccebacb64ebb711363ce5dc4baed (patch)
tree69207a11db83b7467fe306e4909d37d676100935
parent931d4dc9fe5fbc2126627d212589256ac3980c89 (diff)
devel/py-psygnal: Add py-psygnal 0.11.1
Psygnal (pronounced "signal") is a pure python implementation of the observer pattern, with the API of Qt-style Signals with (optional) signature and type checking, and support for threading. It has no dependencies. This library does not require or use Qt in any way, It simply implements a similar observer pattern API.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-psygnal/Makefile23
-rw-r--r--devel/py-psygnal/distinfo3
-rw-r--r--devel/py-psygnal/pkg-descr6
4 files changed, 33 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 8ed179805bc8..f0422fcc135b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5436,6 +5436,7 @@
SUBDIR += py-protobuf-compiler
SUBDIR += py-protobuf4
SUBDIR += py-proxmoxer
+ SUBDIR += py-psygnal
SUBDIR += py-ptable
SUBDIR += py-ptpython
SUBDIR += py-ptvsd
diff --git a/devel/py-psygnal/Makefile b/devel/py-psygnal/Makefile
new file mode 100644
index 000000000000..3ce1250b69b2
--- /dev/null
+++ b/devel/py-psygnal/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= psygnal
+PORTVERSION= 0.11.1
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Fast python callback/event system modeled after Qt Signals
+WWW= https://psygnal.readthedocs.io/en/latest/ \
+ https://github.com/pyapp-kit/psygnal
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0:devel/py-hatch-vcs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>=1.8.0:devel/py-hatchling@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-psygnal/distinfo b/devel/py-psygnal/distinfo
new file mode 100644
index 000000000000..87ddec12c44b
--- /dev/null
+++ b/devel/py-psygnal/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1726487274
+SHA256 (psygnal-0.11.1.tar.gz) = f9b02ca246ab0adb108c4010b4a486e464f940543201074591e50370cd7b0cc0
+SIZE (psygnal-0.11.1.tar.gz) = 102103
diff --git a/devel/py-psygnal/pkg-descr b/devel/py-psygnal/pkg-descr
new file mode 100644
index 000000000000..3433d5318003
--- /dev/null
+++ b/devel/py-psygnal/pkg-descr
@@ -0,0 +1,6 @@
+Psygnal (pronounced "signal") is a pure python implementation of the observer
+pattern, with the API of Qt-style Signals with (optional) signature and type
+checking, and support for threading. It has no dependencies.
+
+This library does not require or use Qt in any way, It simply implements a
+similar observer pattern API.