depot/third_party/nixpkgs/pkgs/development/python-modules/authlib/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

67 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
cachelib,
cryptography,
fetchFromGitHub,
flask,
flask-sqlalchemy,
httpx,
mock,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
requests,
starlette,
werkzeug,
}:
buildPythonPackage rec {
pname = "authlib";
version = "1.3.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "lepture";
repo = "authlib";
rev = "refs/tags/v${version}";
hash = "sha256-5AZca4APi2gLwj/AHtXOPzIFnJkCmK9mDV0bAAvIx8A=";
};
propagatedBuildInputs = [
cryptography
requests
];
nativeCheckInputs = [
cachelib
flask
flask-sqlalchemy
httpx
mock
pytest-asyncio
pytestCheckHook
starlette
werkzeug
];
pythonImportsCheck = [ "authlib" ];
disabledTestPaths = [
# Django tests require a running instance
"tests/django/"
"tests/clients/test_django/"
# Unsupported encryption algorithm
"tests/jose/test_chacha20.py"
];
meta = with lib; {
description = "Library for building OAuth and OpenID Connect servers";
homepage = "https://github.com/lepture/authlib";
changelog = "https://github.com/lepture/authlib/blob/v${version}/docs/changelog.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ flokli ];
};
}