aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2026-01-15 11:35:00 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2026-01-15 11:53:04 +0000
commit3df1c8e0e9d10b6ca5bfa90140106d419bd3395a (patch)
tree0c1f8fd936a6c689201b8fa6fd9289a75ec99277
parent7d618207e7be47e5830ac9a7c88c7021094ca9a1 (diff)
devel/py-readerwriterlock: Add py-readerwriterlock 1.0.9
Reader Writer Lock provides a python implementation of a solution for the three Reader-Writer problems. Not only does it implement the reader-writer problems, it is also compliant with the python lock interface which among others include support for timeout.
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-readerwriterlock/Makefile23
-rw-r--r--devel/py-readerwriterlock/distinfo3
-rw-r--r--devel/py-readerwriterlock/pkg-descr5
4 files changed, 32 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index bb09b8e0385a..af36b612c4b8 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5897,6 +5897,7 @@
SUBDIR += py-raven
SUBDIR += py-rchitect
SUBDIR += py-re-assert
+ SUBDIR += py-readerwriterlock
SUBDIR += py-readme-renderer
SUBDIR += py-rebulk
SUBDIR += py-recordclass
diff --git a/devel/py-readerwriterlock/Makefile b/devel/py-readerwriterlock/Makefile
new file mode 100644
index 000000000000..56022d0396ed
--- /dev/null
+++ b/devel/py-readerwriterlock/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= readerwriterlock
+PORTVERSION= 1.0.9
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Python implementation of the three Reader-Writer problems
+WWW= https://github.com/elarivie/pyReaderWriterLock
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-readerwriterlock/distinfo b/devel/py-readerwriterlock/distinfo
new file mode 100644
index 000000000000..69b14e3a638b
--- /dev/null
+++ b/devel/py-readerwriterlock/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1767157567
+SHA256 (readerwriterlock-1.0.9.tar.gz) = b7c4cc003435d7a8ff15b312b0a62a88d9800ba6164af88991f87f8b748f9bea
+SIZE (readerwriterlock-1.0.9.tar.gz) = 16595
diff --git a/devel/py-readerwriterlock/pkg-descr b/devel/py-readerwriterlock/pkg-descr
new file mode 100644
index 000000000000..5657b8d1d3fa
--- /dev/null
+++ b/devel/py-readerwriterlock/pkg-descr
@@ -0,0 +1,5 @@
+Reader Writer Lock provides a python implementation of a solution for the three
+Reader-Writer problems.
+
+Not only does it implement the reader-writer problems, it is also compliant with
+the python lock interface which among others include support for timeout.