Blob Blame Raw
%global         srcname  aioresponses
%global         desc     Aioresponses is a helper to mock/fake web requests in the python\
aiohttp package. The purpose of this package is to provide an\
easy way  to test asynchronous HTTP requests.

Name:           python-%{srcname}
Version:        0.6.0
Release:        3%{?dist}
Summary:        Mock out requests made by ClientSession from aiohttp package

License:        MIT
Source0:        %pypi_source

BuildArch:      noarch

# required for py3_build macro
BuildRequires:  python3-devel

# from
BuildRequires: python3-pbr
BuildRequires: python3-aiohttp

## for tests
BuildRequires: python3-watchdog
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-ddt
BuildRequires: python3-asynctest



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

%description -n python3-%{srcname}

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

# disable one test that connects to
sed -i 's/def \(test_address_as_instance_of_url_combined_with_pass_through\)(/def skip_\1(/' tests/



%{__python3} test

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst

* Mon Aug 19 2019 Miro HronĨok <> - 0.6.0-3
- Rebuilt for Python 3.8

* Fri Jul 26 2019 Fedora Release Engineering <> - 0.6.0-2
- Rebuilt for

* Tue Mar 26 2019 Georg Sauthoff <> - 0.6.0-1
- initial packaging