Files
nixpkgs/pkgs/development/python-modules/fastapi-sso/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

62 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
email-validator,
fastapi,
fetchFromGitHub,
httpx,
oauthlib,
poetry-core,
pydantic,
pyjwt,
pytest-cov-stub,
pytest-asyncio,
pytest-xdist,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "fastapi-sso";
version = "0.18.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "tomasvotava";
repo = "fastapi-sso";
tag = version;
hash = "sha256-591+7Jjg3Pb0qXZsj4tEk8lHqxAzWrs5GO92jFJ4Qmo=";
};
build-system = [ poetry-core ];
dependencies = [
fastapi
httpx
oauthlib
pydantic
pyjwt
]
++ pydantic.optional-dependencies.email;
nativeCheckInputs = [
email-validator
pytest-asyncio
pytest-cov-stub
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "fastapi_sso" ];
meta = {
description = "FastAPI plugin to enable SSO to most common providers (such as Facebook login, Google login and login via Microsoft Office 365 Account";
homepage = "https://github.com/tomasvotava/fastapi-sso";
changelog = "https://github.com/tomasvotava/fastapi-sso/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}