From 5397c5e80dab3825d0edaa31746adcea47aa361a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Goran=20Meki=C4=87?= Date: Sat, 29 Jan 2022 15:52:38 +0900 Subject: www/py-fastapi-users: add port: Ready-to-use and customizable users management for FastAPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add quickly a registration and authentication system to your FastAPI project. FastAPI Users is designed to be as customizable and adaptable as possible. Features: * Extensible base user model * Ready-to-use register, login, reset password and verify e-mail routes * Ready-to-use social OAuth2 login flow * Dependency callables to inject current user in route * Pluggable password validation * Customizable database backend * SQLAlchemy async backend included thanks to encode/databases * MongoDB async backend included thanks to mongodb/motor * Tortoise ORM backend included * ormar backend included * Multiple customizable authentication backends * JWT authentication backend included * Cookie authentication backend included * Full OpenAPI schema support, even with several authentication backends WWW: https://github.com/fastapi-users/fastapi-users PR: 257369 Reported by: Goran Mekić (new maintainer) Reviewed by: koobs --- www/py-fastapi-users/files/patch-setup.py | 52 +++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 www/py-fastapi-users/files/patch-setup.py (limited to 'www/py-fastapi-users/files/patch-setup.py') diff --git a/www/py-fastapi-users/files/patch-setup.py b/www/py-fastapi-users/files/patch-setup.py new file mode 100644 index 000000000000..c56e9fe3c2d1 --- /dev/null +++ b/www/py-fastapi-users/files/patch-setup.py @@ -0,0 +1,52 @@ +--- setup.py.orig 2022-01-24 23:01:58 UTC ++++ setup.py +@@ -0,0 +1,49 @@ ++#!/usr/bin/env python ++# setup.py generated by flit for tools that don't yet use PEP 517 ++ ++from distutils.core import setup ++ ++packages = [ ++ "fastapi_users", ++ "fastapi_users.authentication", ++ "fastapi_users.authentication.strategy", ++ "fastapi_users.authentication.strategy.db", ++ "fastapi_users.authentication.transport", ++ "fastapi_users.db", ++ "fastapi_users.router", ++] ++ ++package_data = {"": ["*"]} ++ ++install_requires = [ ++ "fastapi >=0.65.2,<0.72.0", ++ "passlib[bcrypt] ==1.7.4", ++ "email-validator >=1.1.0,<1.2", ++ "pyjwt ==2.3.0", ++ "python-multipart ==0.0.5", ++ "makefun >=1.11.2,<1.14", ++] ++ ++extras_require = { ++ "mongodb": ["fastapi-users-db-mongodb >=1.1.0"], ++ "oauth": ["httpx-oauth >=0.4,<0.5"], ++ "ormar": ["fastapi-users-db-ormar >=1.0.0"], ++ "redis": ["aioredis >=2.0.1,<2.1.0", "hiredis >=2.0.0,<2.1.0"], ++ "sqlalchemy": ["fastapi-users-db-sqlalchemy >=1.1.0,<2.0.0"], ++ "sqlalchemy2": ["fastapi-users-db-sqlalchemy >=2.0.0"], ++ "tortoise-orm": ["fastapi-users-db-tortoise >=1.1.0"], ++} ++ ++setup( ++ name="fastapi-users", ++ version="9.2.2", ++ description="Ready-to-use and customizable users management for FastAPI.", ++ author="François Voron", ++ author_email="fvoron@gmail.com", ++ url="https://github.com/fastapi-users/fastapi-users", ++ packages=packages, ++ package_data=package_data, ++ install_requires=install_requires, ++ extras_require=extras_require, ++ python_requires=">=3.7", ++) -- cgit v1.2.3