git: 5d94568a09e6 - main - devel/py-in-n-out: New port: Plugable dependency injection and result processing
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Dec 2024 02:13:33 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5d94568a09e6df3c588c48566fa9a0fb46e715e9
commit 5d94568a09e6df3c588c48566fa9a0fb46e715e9
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-12-12 15:01:51 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-12-13 02:13:29 +0000
devel/py-in-n-out: New port: Plugable dependency injection and result processing
---
devel/Makefile | 1 +
devel/py-in-n-out/Makefile | 29 +++++++++++++++++++++++++++++
devel/py-in-n-out/distinfo | 3 +++
devel/py-in-n-out/pkg-descr | 5 +++++
4 files changed, 38 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index d7b491d4a9e5..a650012f1e69 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5001,6 +5001,7 @@
SUBDIR += py-importlib-metadata6
SUBDIR += py-importlib-metadata7
SUBDIR += py-importlib-resources
+ SUBDIR += py-in-n-out
SUBDIR += py-incremental
SUBDIR += py-infinity
SUBDIR += py-inflect
diff --git a/devel/py-in-n-out/Makefile b/devel/py-in-n-out/Makefile
new file mode 100644
index 000000000000..4fa0437a9f07
--- /dev/null
+++ b/devel/py-in-n-out/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= in-n-out
+DISTVERSION= 0.2.1
+CATEGORIES= devel science
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/g}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Plugable dependency injection and result processing
+WWW= https://ino.readthedocs.io/en/latest/ \
+ https://github.com/pyapp-kit/in-n-out
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}toolz>0:devel/py-toolz@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+# tests as of 0.2.1: 122 passed, 2 skipped in 6.32s (3 tests fail when pytest-mypy plugin is installed)
+
+.include <bsd.port.mk>
diff --git a/devel/py-in-n-out/distinfo b/devel/py-in-n-out/distinfo
new file mode 100644
index 000000000000..b9e65d8c114e
--- /dev/null
+++ b/devel/py-in-n-out/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1734033610
+SHA256 (in_n_out-0.2.1.tar.gz) = 43cde2b7de981d41a6d70618a2b7bd989481095922a53ead4dc75f2bbd5dffea
+SIZE (in_n_out-0.2.1.tar.gz) = 26026
diff --git a/devel/py-in-n-out/pkg-descr b/devel/py-in-n-out/pkg-descr
new file mode 100644
index 000000000000..ef180df683d8
--- /dev/null
+++ b/devel/py-in-n-out/pkg-descr
@@ -0,0 +1,5 @@
+Python dependency injection you can taste.
+
+A lightweight dependency injection and result processing framework for Python
+using type hints. Emphasis is on simplicity, ease of use, and minimal impact
+on source code.