View | Details | Raw Unified | Return to bug 257369 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/Makefile (+1 lines)
Lines 1609-1614 Link Here
1609
    SUBDIR += py-fake-useragent
1609
    SUBDIR += py-fake-useragent
1610
    SUBDIR += py-falcon
1610
    SUBDIR += py-falcon
1611
    SUBDIR += py-fastapi
1611
    SUBDIR += py-fastapi
1612
    SUBDIR += py-fastapi-users
1612
    SUBDIR += py-feedgenerator
1613
    SUBDIR += py-feedgenerator
1613
    SUBDIR += py-flask
1614
    SUBDIR += py-flask
1614
    SUBDIR += py-flask-admin
1615
    SUBDIR += py-flask-admin
(-)b/www/py-fastapi-users/Makefile (+59 lines)
Added Link Here
1
PORTNAME=	fastapi-users
2
PORTVERSION=	8.1.2
3
CATEGORIES=	www devel python
4
MASTER_SITES=	CHEESESHOP
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
7
MAINTAINER=	meka@tilda.center
8
COMMENT=	Ready-to-use and customizable users management for FastAPI
9
10
LICENSE=	MIT
11
12
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fastapi>=0.65.2,<0.71.0:www/py-fastapi@${PY_FLAVOR} \
13
		${PYTHON_PKGNAMEPREFIX}passlib>=0:security/py-passlib@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}makefun>=1.11.2,<1.14:devel/py-makefun@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}python-multipart>=0.0.5:www/py-python-multipart@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}bcrypt>=3.1.0:security/py-bcrypt@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}pyjwt>=2.1.0:www/py-pyjwt@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}email-validator>=1.1.0,<1.2:mail/py-email-validator@${PY_FLAVOR}
19
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}httpx-oauth>=0:www/py-httpx-oauth@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}asgi-lifespan>=0:devel/py-asgi-lifespan@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}pymongo>=0:databases/pymongo@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}ormar>=0.9.5,<0.11.0:databases/py-ormar@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}asynctest>=0:devel/py-asynctest@${PY_FLAVOR}
26
27
USES=		python:3.7+
28
USE_PYTHON=	autoplist distutils
29
30
TEST_ENV=	PYTHONPATH=${WRKSRC}/src
31
32
NO_ARCH=	yes
33
34
OPTIONS_DEFINE=			OAUTH
35
OPTIONS_GROUP=			DATABASES
36
OPTIONS_GROUP_DATABASES=	ORMAR SQLALCHEMY
37
OPTIONS_DEFAULT=		ORMAR
38
DATABASES_DESC=			Database Support
39
40
OAUTH_DESC=		Authentication support via OAuth
41
ORMAR_DESC=		Support for SQL database through Ormar
42
SQLALCHEMY_DESC=	Support for SQL database through SQLAlchemy
43
44
OAUTH_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}httpx-oauth>=0.3,<0.4:www/py-httpx-oauth@${PY_FLAVOR}
45
ORMAR_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ormar>=0.9.5,<0.11.0:databases/py-ormar@${PY_FLAVOR}
46
SQLALCHEMY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlalchemy14>=1.4.0:databases/py-aiosqlite@${PY_FLAVOR} \
47
			${PYTHON_PKGNAMEPREFIX}databases>=0.3.0,<0.5:databases/py-databases@${PY_FLAVOR}
48
49
# Tests require tortoise and newer motor
50
# do-test:
51
	# cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
52
53
.include <bsd.port.pre.mk>
54
55
.if ${PYTHON_REL} < 30800
56
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.3:devel/py-typing-extensions@${PY_FLAVOR}
57
.endif
58
59
.include <bsd.port.post.mk>
(-)b/www/py-fastapi-users/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1640948315
2
SHA256 (fastapi-users-8.1.2.tar.gz) = 8ddbaccb7ab0df73cf89693ff1a47d876c98a902bdddb96e67a5f41574463152
3
SIZE (fastapi-users-8.1.2.tar.gz) = 88605
(-)b/www/py-fastapi-users/pkg-descr (+19 lines)
Added Link Here
1
Add quickly a registration and authentication system to your FastAPI project.
2
FastAPI Users is designed to be as customizable and adaptable as possible.
3
Features:
4
  * Extensible base user model
5
  * Ready-to-use register, login, reset password and verify e-mail routes
6
  * Ready-to-use social OAuth2 login flow
7
  * Dependency callables to inject current user in route
8
  * Pluggable password validation
9
  * Customizable database backend
10
    * SQLAlchemy async backend included thanks to encode/databases
11
    * MongoDB async backend included thanks to mongodb/motor
12
    * Tortoise ORM backend included
13
    * ormar backend included
14
  * Multiple customizable authentication backends
15
    * JWT authentication backend included
16
    * Cookie authentication backend included
17
  * Full OpenAPI schema support, even with several authentication backends
18
19
WWW: https://github.com/frankie567/fastapi-users

Return to bug 257369