Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697{ lib, buildPythonPackage, cachelib, cryptography, fetchFromGitHub, flask-sqlalchemy, flask, httpx2, joserfc, django, anyio, pytest-django, pytest-asyncio, pycryptodomex, pytestCheckHook, requests, setuptools, starlette,}:
buildPythonPackage (finalAttrs: { pname = "authlib"; version = "1.9.1"; pyproject = true;
src = fetchFromGitHub { owner = "authlib"; repo = "authlib"; tag = "v${finalAttrs.version}"; hash = "sha256-8n08XIR8+okoF6AEEMxYrKnfbXJCCNuRvfPR/RisRls="; };
build-system = [ setuptools ];
dependencies = [ cryptography joserfc ];
optional-dependencies = { clients = [ anyio cachelib django flask httpx2 requests starlette ] ++ starlette.optional-dependencies.full; django = [ django pytest-django ]; flask = [ flask flask-sqlalchemy ]; jose = [ pycryptodomex ]; };
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ] ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "authlib" ];
disabledTestPaths = [ # Django tests require a running instance "tests/django/" "tests/clients/test_django/" # Unsupported encryption algorithm "tests/jose/test_chacha20.py" ];
disabledTests = [ # AssertionError "test_access_resource" "test_entitlements_restriction" "test_extra_attributes" "test_introspection" "test_scope_restriction" "test_typ" ];
meta = { description = "Library for building OAuth and OpenID Connect servers"; homepage = "https://github.com/authlib/authlib"; changelog = "https://github.com/authlib/authlib/blob/${finalAttrs.src.tag}/docs/upgrades/changelog.rst"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ flokli ]; };})