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

Collapse All | Expand All

(-)b/www/Makefile (+1 lines)
Lines 1588-1593 Link Here
1588
    SUBDIR += py-fake-useragent
1588
    SUBDIR += py-fake-useragent
1589
    SUBDIR += py-falcon
1589
    SUBDIR += py-falcon
1590
    SUBDIR += py-fastapi
1590
    SUBDIR += py-fastapi
1591
    SUBDIR += py-fastapi-users
1591
    SUBDIR += py-feedgenerator
1592
    SUBDIR += py-feedgenerator
1592
    SUBDIR += py-flask
1593
    SUBDIR += py-flask
1593
    SUBDIR += py-flask-admin
1594
    SUBDIR += py-flask-admin
(-)b/www/py-fastapi-users/Makefile (+60 lines)
Added Link Here
1
PORTNAME=	fastapi-users
2
PORTVERSION=	6.1.1
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.67.0:www/py-fastapi@${PY_FLAVOR} \
13
		${PYTHON_PKGNAMEPREFIX}passlib>=0:security/py-passlib@${PY_FLAVOR} \
14
		${PYTHON_PKGNAMEPREFIX}deprecated>=1.2.12,<2.0.0:devel/py-deprecated@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}makefun>=1.11.2,<1.12:devel/py-makefun@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}python-multipart>=0.0.5:www/py-python-multipart@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}bcrypt>=3.1.0:security/py-bcrypt@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}pyjwt>=2.1.0:www/py-pyjwt@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}email-validator>=1.1.0,<1.2:mail/py-email-validator@${PY_FLAVOR}
20
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
21
		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
22
		${PYTHON_PKGNAMEPREFIX}httpx-oauth>=0:www/py-httpx-oauth@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}asgi-lifespan>=0:devel/py-asgi-lifespan@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}pymongo>=0:databases/pymongo@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}ormar>=0.9.5,<0.11.0:databases/py-ormar@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}asynctest>=0:devel/py-asynctest@${PY_FLAVOR}
27
28
USES=		python:3.7+
29
USE_PYTHON=	autoplist distutils
30
31
TEST_ENV=	PYTHONPATH=${WRKSRC}/src
32
33
NO_ARCH=	yes
34
35
OPTIONS_DEFINE=			OAUTH
36
OPTIONS_GROUP=			DATABASES
37
OPTIONS_GROUP_DATABASES=	ORMAR SQLALCHEMY
38
OPTIONS_DEFAULT=		ORMAR
39
DATABASES_DESC=			Database Support
40
41
OAUTH_DESC=		Authentication support via OAuth
42
ORMAR_DESC=		Support for SQL database through Ormar
43
SQLALCHEMY_DESC=	Support for SQL database through SQLAlchemy
44
45
OAUTH_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}httpx-oauth>=0.3,<0.4:www/py-httpx-oauth@${PY_FLAVOR}
46
ORMAR_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ormar>=0.9.5,<0.11.0:databases/py-ormar@${PY_FLAVOR}
47
SQLALCHEMY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlalchemy13>=1.3.13:databases/py-aiosqlite@${PY_FLAVOR} \
48
			${PYTHON_PKGNAMEPREFIX}databases>=0.3.0,<0.5:databases/py-databases@${PY_FLAVOR}
49
50
# Tests require tortoise and newer motor
51
# do-test:
52
	# cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
53
54
.include <bsd.port.pre.mk>
55
56
.if ${PYTHON_REL} < 30800
57
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.3:devel/py-typing-extensions@${PY_FLAVOR}
58
.endif
59
60
.include <bsd.port.post.mk>
(-)b/www/py-fastapi-users/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1626889393
2
SHA256 (fastapi-users-6.1.1.tar.gz) = 6b4ae936bbe967bb41babc17a1eac8dedff3237153b96a661a11098ceec20a5c
3
SIZE (fastapi-users-6.1.1.tar.gz) = 84818
(-)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