File python3-requests.spec of Package python3-requests
#
# spec file for package python-requests
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-requests
Version: 2.25.1
Release: 0
Summary: Python HTTP for Humans
License: Apache-2.0
URL: https://requests.readthedocs.io
Source: https://files.pythonhosted.org/packages/source/r/requests/requests-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module certifi >= 2017.4.17}
BuildRequires: %{python_module chardet >= 3.0.2}
BuildRequires: %{python_module idna >= 2.5}
BuildRequires: %{python_module urllib3 >= 1.21.1}
BuildRequires: %{python_module PySocks >= 1.5.6}
# /SECTION
BuildRequires: fdupes
Requires: python-certifi >= 2017.4.17
Requires: python-chardet >= 3.0.2
Requires: python-idna >= 2.5
Requires: python-urllib3 >= 1.21.1
Suggests: python-pyOpenSSL >= 0.14
Suggests: python-cryptography >= 1.3.4
Suggests: python-PySocks >= 1.5.6
Suggests: python-win_inet_pton
BuildArch: noarch
%python_subpackages
%description
Python HTTP for Humans.
%prep
%setup -q -n requests-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog