git: 072a436c8223 - main - devel/py-fast-depends: New port: FastAPI dependency injection system extracted from HTTP domain logic
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 11 Jul 2026 02:55:30 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=072a436c8223b938299e022ee302a63e5da19901
commit 072a436c8223b938299e022ee302a63e5da19901
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-07-11 02:37:14 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-07-11 02:55:22 +0000
devel/py-fast-depends: New port: FastAPI dependency injection system extracted from HTTP domain logic
---
devel/Makefile | 1 +
devel/py-fast-depends/Makefile | 32 ++++++++++++++++++++++++
devel/py-fast-depends/distinfo | 3 +++
devel/py-fast-depends/files/patch-pyproject.toml | 16 ++++++++++++
devel/py-fast-depends/pkg-descr | 3 +++
5 files changed, 55 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index dd306a98b36b..75797440291d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5017,6 +5017,7 @@
SUBDIR += py-factory-boy
SUBDIR += py-faicons
SUBDIR += py-fam
+ SUBDIR += py-fast-depends
SUBDIR += py-fastbencode
SUBDIR += py-fastcache
SUBDIR += py-fastcore
diff --git a/devel/py-fast-depends/Makefile b/devel/py-fast-depends/Makefile
new file mode 100644
index 000000000000..3dfa4fa52aa6
--- /dev/null
+++ b/devel/py-fast-depends/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= fast-depends
+DISTVERSION= 3.0.8
+CATEGORIES= devel python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= FastAPI dependency injection system extracted from HTTP domain logic
+WWW= https://lancetnik.github.io/FastDepends/ \
+ https://github.com/Lancetnik/FastDepends
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=4.0.0:devel/py-anyio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.12.2:devel/py-typing-extensions@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}annotated-types>0:devel/py-annotated-types@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dirty-equals>0:devel/py-dirty-equals@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pydantic2>=2.6.1:devel/py-pydantic2@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+USE_GITHUB= yes
+GH_ACCOUNT= Lancetnik
+GH_PROJECT= FastDepends
+
+NO_ARCH= yes
+
+# tests as of 3.0.8: 186 passed, 10 skipped in 0.99s
+
+.include <bsd.port.mk>
diff --git a/devel/py-fast-depends/distinfo b/devel/py-fast-depends/distinfo
new file mode 100644
index 000000000000..da638dd5800a
--- /dev/null
+++ b/devel/py-fast-depends/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1783735295
+SHA256 (Lancetnik-FastDepends-3.0.8_GH0.tar.gz) = eb5c00266519793ff454efebd07f5bafb393e16389859712413620a643e339db
+SIZE (Lancetnik-FastDepends-3.0.8_GH0.tar.gz) = 130013
diff --git a/devel/py-fast-depends/files/patch-pyproject.toml b/devel/py-fast-depends/files/patch-pyproject.toml
new file mode 100644
index 000000000000..e8f185f72b4f
--- /dev/null
+++ b/devel/py-fast-depends/files/patch-pyproject.toml
@@ -0,0 +1,16 @@
+--- pyproject.toml.orig 2026-07-10 00:00:00 UTC
++++ pyproject.toml
+@@ -1,7 +1,7 @@
+ [build-system]
+-requires = ["uv_build>=0.9.2"]
+-build-backend = "uv_build"
+-
+-[tool.uv.build-backend]
+-module-root = ""
++requires = ["hatchling"]
++build-backend = "hatchling.build"
++
++[tool.hatch.build.targets.wheel]
++packages = ["fast_depends"]
+
+ [project]
diff --git a/devel/py-fast-depends/pkg-descr b/devel/py-fast-depends/pkg-descr
new file mode 100644
index 000000000000..743b076f12a4
--- /dev/null
+++ b/devel/py-fast-depends/pkg-descr
@@ -0,0 +1,3 @@
+FastDepends is a library that provides FastAPI's dependency injection system,
+extracted and cleared from HTTP domain logic. It supports both synchronous and
+asynchronous dependencies and can be used independently of FastAPI.