%{?python_enable_dependency_generator} # Created by pyp2rpm-3.3.0 %global pypi_name httmock Name: python-%{pypi_name} Version: 1.4.0 Release: 8%{?dist} Summary: A mocking library for requests License: ASL 2.0 URL: https://github.com/patrys/httmock Source0: https://files.pythonhosted.org/packages/source/h/httmock/httmock-%{version}.tar.gz Source1: https://raw.githubusercontent.com/patrys/httmock/%{version}/tests.py # Add a tox file. # https://bugzilla.redhat.com/show_bug.cgi?id=2019409 Patch0: https://patch-diff.githubusercontent.com/raw/patrys/httmock/pull/64.diff BuildArch: noarch %description A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel %generate_buildrequires %pyproject_buildrequires -t %description -n python3-%{pypi_name} A mocking library for requests for Python. You can use it to mock third-party APIs and test libraries that use requests internally. %prep %autosetup -p1 -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info cp %{SOURCE1} . %build %py3_build %install %py3_install %check %{tox} %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Fri Jan 20 2023 Fedora Release Engineering - 1.4.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.4.0-6 - Rebuilt for Python 3.11 * Fri Jan 28 2022 Steve Traylen 1.4.0-5 - Migrate tests to tox rhbz#2019409 * Fri Jan 21 2022 Fedora Release Engineering - 1.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.4.0-2 - Rebuilt for Python 3.10 * Mon Mar 8 2021 Steve Traylen - 1.4.0-1 - Update to 1.4.0 * Wed Jan 27 2021 Fedora Release Engineering - 1.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.3.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Nov 13 2019 Steve Traylen - 1.3.0-1 - Update to 1.3.0 * Thu Oct 03 2019 Miro Hrončok - 1.2.6-9 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.2.6-8 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.2.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.2.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jan 04 2019 Igor Gnatenko - 1.2.6-5 - Enable python dependency generator * Fri Jan 04 2019 Miro Hrončok - 1.2.6-4 - Subpackage python2-httmock has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 1.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1.2.6-2 - Rebuilt for Python 3.7 * Fri May 11 2018 Steve Traylen - 1.2.6-1 - Initial package.