c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, email-validator
|
|
, fastapi
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, oauthlib
|
|
, poetry-core
|
|
, pydantic
|
|
, pylint
|
|
, pytest-asyncio
|
|
, pytest-xdist
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fastapi-sso";
|
|
version = "0.12.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tomasvotava";
|
|
repo = "fastapi-sso";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-/Mt0pmZYsWp/n9YHCy/bFKUPzmoRFB0cHKCNxEfxMLs=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/--cov/d" pyproject.toml
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
fastapi
|
|
httpx
|
|
oauthlib
|
|
pydantic
|
|
pylint
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
email-validator
|
|
pytest-asyncio
|
|
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 ];
|
|
};
|
|
}
|