Unverified Commit f575bea5 authored by Stanisław Pitucha's avatar Stanisław Pitucha Committed by GitHub
Browse files

Merge pull request #198906 from fabaff/authlib

python310Packages.authlib: 1.0.1 -> 1.1.0
parents d3e16830 e88df671
Loading
Loading
Loading
Loading
+42 −11
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, cachelib
, cryptography
, fetchFromGitHub
, pytest
, flask
, flask-sqlalchemy
, httpx
, mock
, cryptography
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, requests
, starlette
, werkzeug
}:

buildPythonPackage rec {
  version = "1.0.1";
  pname = "authlib";
  version = "1.1.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "lepture";
    repo = "authlib";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-2uzb3rhEDMgH2QZ0yUdI1c4qLJT5XIDmOV/1mV/5lnc=";
    hash = "sha256-UTsQRAgmYu4BwT0WWE6XOjTYyGWZIt8bMH9qJ8KLOWA=";
  };

  propagatedBuildInputs = [ cryptography requests ];
  propagatedBuildInputs = [
    cryptography
    requests
  ];

  checkInputs = [ mock pytest ];
  checkInputs = [
    cachelib
    flask
    flask-sqlalchemy
    httpx
    mock
    pytest-asyncio
    pytestCheckHook
    starlette
    werkzeug
  ];

  checkPhase = ''
    PYTHONPATH=$PWD:$PYTHONPATH pytest tests/{core,files}
  '';
  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";
    description = "The ultimate Python library in building OAuth and OpenID Connect servers. JWS,JWE,JWK,JWA,JWT included.";
    maintainers = with maintainers; [ flokli ];
    license = licenses.bsd3;
    maintainers = with maintainers; [ flokli ];
  };
}