Blob Blame History Raw
Name:           python-requests
Version:        2.24.0
Release:        0%{?dist}
Summary:        Requests is an elegant and simple HTTP library for Python

License:        ASL 2.0
Source0:        %{pypi_source requests}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

This package uses multiple extras in %%pyproject_extras_subpkg and in
This test is mostly obsoleted by python-dns-lexicon.spec on Fedora 33+,
but we keep it around until Fedora 32 EOL.

%package -n python3-requests
Summary:            %{summary}

%description -n python3-requests

%pyproject_extras_subpkg -n python3-requests security socks

%autosetup -n requests-%{version}

%pyproject_buildrequires -x security,socks


%pyproject_save_files requests

# Internal check for our macros
# making sure that %%pyproject_buildrequires pulled in deps for both extras
%{python3} -c 'import cryptography, socks'

%files -n python3-requests -f %{pyproject_files}
%doc README.*
%license LICENSE