## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-pytest-socket Version: 0.8.0 Release: %autorelease Summary: Pytest Plugin to disable socket calls during tests License: MIT URL: https://pypi.org/project/pytest-socket/ Source: %{pypi_source pytest_socket} BuildArch: noarch # Test dependencies added manually since pyproject.toml doesn't specify them # separately from dev dependencies. BuildRequires: python3dist(httpx) >= 0.28.1 BuildRequires: python3dist(starlette) >= 0.47.1 %global _description %{expand: A plugin to use with Pytest to disable or restrict socket calls during tests to ensure network calls are prevented.} %description %_description %package -n python3-pytest-socket Summary: %{summary} %description -n python3-pytest-socket %_description %prep %autosetup -p1 -n pytest_socket-%{version} # We must work with what we have, and compatibility is quite good in practice. %pyproject_patch_dependency uv_build:drop_upper %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files --assert-license pytest_socket %check # Deselect tests that fail due to trying to reach external hosts and can't pass in Mock/Koji. %pytest \ --deselect tests/test_combinations.py::test_parametrize_with_socket_enabled_and_allow_hosts \ --deselect tests/test_precedence.py::test_global_disable_and_allow_host \ --deselect tests/test_socket.py::test_urllib_succeeds_by_default \ --deselect tests/test_socket.py::test_enabled_urllib_succeeds %files -n python3-pytest-socket -f %{pyproject_files} %doc README.md %changelog ## START: Generated by rpmautospec * Mon Jul 20 2026 Benjamin A. Beasley - 0.8.0-3 - Patch out uv-build version upper bound * Thu Jul 16 2026 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild * Thu Jun 11 2026 Tadej Janež - 0.8.0-1 - Initial import (fedora#2487448) ## END: Generated by rpmautospec