Blob Blame History Raw
%global srcname pytest-httpserver

%global desc %{expand: \
This library is designed to help to test http clients without contacting 
the real http server. In other words, it is a fake http server which is 
accessible via localhost can be started with the pre-defined expected 
http requests and their responses.}

Name:		python-%{srcname}
Version:	1.0.4
Release:	3%{?dist}
Summary:	HTTP server for pytest

License:	MIT
Source0:	%{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

Patch0:		pyproject.patch

BuildArch:	noarch

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


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

%description -n python3-%{srcname} %desc

%autosetup -p1 -n %{srcname}-%{version}

%pyproject_buildrequires -x test


%pyproject_save_files pytest_httpserver


%files -n python3-%{srcname} -f %{pyproject_files}
%doc CHANGES.rst

* Fri Jan 20 2023 Fedora Release Engineering <> - 1.0.4-3
- Rebuilt for

* Fri Jul 22 2022 Fedora Release Engineering <> - 1.0.4-2
- Rebuilt for

* Thu Jun 30 2022 Ali Erdinc Koroglu <> - 1.0.4-1
- Initial package