Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 56 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ buildPythonPackage, fetchFromGitHub, hatchling, hatch-vcs, fastapi, pyjwt, httpx, requests, pytestCheckHook, lib,}:buildPythonPackage (finalAttrs: { pname = "fastapi-github-oidc"; version = "0.3.0"; pyproject = true;
src = fetchFromGitHub { owner = "atopile"; repo = "fastapi-github-oidc"; tag = finalAttrs.version; hash = "sha256-FS50++Hy9h0RFrSnc4PbXFPh/1OO0JOaFdIZwoXa86A="; };
build-system = [ hatchling hatch-vcs ];
dependencies = [ fastapi pyjwt httpx requests ];
pythonImportsCheck = [ "github_oidc.client" "github_oidc.server" ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [ "test_with_auth" # calls github api "test_no_auth" # returns 401 instead of 403 ];
meta = { description = "FastAPI compatible middleware to authenticate Github OIDC Tokens"; homepage = "https://github.com/atopile/fastapi-github-oidc"; changelog = "https://github.com/atopile/fastapi-github-oidc/releases/tag/${finalAttrs.src.tag}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ sigmanificient ]; };})