File python-authlib.spec of Package python-authlib

# Created by pyp2rpm-3.3.4
%global pypi_name authlib

Name:           python-%{pypi_name}
Version:        0.14.3
Release:        1%{?dist}
Summary:        The ultimate Python library in building OAuth and OpenID Connect servers

License:        BSD
URL:            https://authlib.org/
Source0:        https://files.pythonhosted.org/packages/source/a/%{pypi_name}/Authlib-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
The ultimate Python library in building OAuth and OpenID Connect servers.
JWS, JWK, JWA, JWT are included.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

Requires:       python3dist(cryptography)
Requires:       python3dist(requests)
%description -n python3-%{pypi_name}
The ultimate Python library in building OAuth and OpenID Connect servers. JWS,
JWK, JWA, JWT are included.


%prep
%autosetup -n Authlib-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/Authlib-%{version}-py%{python3_version}.egg-info