git: 24a9e8ddd341 - main - www/py-fastapi-sso: add port: FastAPI plugin to enable SSO to most common providers

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sat, 13 Sep 2025 04:29:00 UTC
The branch main has been updated by tagattie:

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

commit 24a9e8ddd3413d16fe04de951a2eff8e52851347
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-09-13 04:13:21 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-09-13 04:28:50 +0000

    www/py-fastapi-sso: add port: FastAPI plugin to enable SSO to most common providers
    
    FastAPI plugin to enable SSO to most common providers (such as
    Facebook login, Google login and login via Microsoft Office 365
    account).
    
    This allows you to implement the famous Login with
    Google/Facebook/Microsoft buttons functionality on your backend very
    easily.
    
    WWW: https://tomasvotava.github.io/fastapi-sso/
---
 www/Makefile                 |  1 +
 www/py-fastapi-sso/Makefile  | 41 +++++++++++++++++++++++++++++++++++++++++
 www/py-fastapi-sso/distinfo  |  3 +++
 www/py-fastapi-sso/pkg-descr |  7 +++++++
 4 files changed, 52 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 9e93adab5a2e..0b9712076b56 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1715,6 +1715,7 @@
     SUBDIR += py-fake-useragent
     SUBDIR += py-falcon
     SUBDIR += py-fastapi
+    SUBDIR += py-fastapi-sso
     SUBDIR += py-feedgen
     SUBDIR += py-feedgenerator
     SUBDIR += py-flasgger
diff --git a/www/py-fastapi-sso/Makefile b/www/py-fastapi-sso/Makefile
new file mode 100644
index 000000000000..5d9f42189cb2
--- /dev/null
+++ b/www/py-fastapi-sso/Makefile
@@ -0,0 +1,41 @@
+PORTNAME=	fastapi-sso
+DISTVERSION=	0.18.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER=	tagattie@FreeBSD.org
+COMMENT=	FastAPI plugin to enable SSO to most common providers
+WWW=		https://tomasvotava.github.io/fastapi-sso/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fastapi>=0.80:www/py-fastapi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}httpx>=0.23.0:www/py-httpx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}oauthlib>=3.1.0:security/py-oauthlib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pydantic2>=1.8.0:devel/py-pydantic2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyjwt>=2.10.1<3:www/py-pyjwt@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+PORTDOCS=	README.md
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31000
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.12.2<5:devel/py-typing-extensions@${PY_FLAVOR}
+.endif
+
+post-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.post.mk>
diff --git a/www/py-fastapi-sso/distinfo b/www/py-fastapi-sso/distinfo
new file mode 100644
index 000000000000..8257cc9f32e0
--- /dev/null
+++ b/www/py-fastapi-sso/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1757574194
+SHA256 (fastapi_sso-0.18.0.tar.gz) = d8df5a686af7a6a7be248817544b405cf77f7e9ffcd5d0d7d2a196fd071964bc
+SIZE (fastapi_sso-0.18.0.tar.gz) = 16811
diff --git a/www/py-fastapi-sso/pkg-descr b/www/py-fastapi-sso/pkg-descr
new file mode 100644
index 000000000000..42a9b02fd5b7
--- /dev/null
+++ b/www/py-fastapi-sso/pkg-descr
@@ -0,0 +1,7 @@
+FastAPI plugin to enable SSO to most common providers (such as
+Facebook login, Google login and login via Microsoft Office 365
+account).
+
+This allows you to implement the famous Login with
+Google/Facebook/Microsoft buttons functionality on your backend very
+easily.