Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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 = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}