Accepting request 948100 from home:bnavigator:branches:devel:languages:python:pytest

- Add pytest-mock-issue272-asyncio.patch
  * gh#pytest-dev/pytest-mock#272

OBS-URL: https://build.opensuse.org/request/show/948100
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=31
This commit is contained in:
2022-01-22 14:52:27 +00:00
committed by Git OBS Bridge
parent d6cabaefe5
commit 934565788f
3 changed files with 61 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-mock
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-pytest-mock
Version: 3.6.1
@@ -25,6 +25,8 @@ Summary: Thin-wrapper around the mock package for easier use with pytest
License: MIT
URL: https://github.com/pytest-dev/pytest-mock
Source: https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pytest-mock-issue272-asyncio.patch -- gh#pytest-dev/pytest-mock#272
Patch0: pytest-mock-issue272-asyncio.patch
BuildRequires: %{python_module pytest >= 5}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module setuptools >= 36}
@@ -37,12 +39,11 @@ BuildArch: noarch
%description
This plugin installs a ``mocker`` fixture which is a thin-wrapper around the patching API
provided by the `mock` package,
but with the benefit of not having to worry about undoing patches at the end
of a test
provided by the `mock` package, but with the benefit of not having to worry about undoing
patches at the end of a test
%prep
%setup -q -n pytest-mock-%{version}
%autosetup -p1 -n pytest-mock-%{version}
%build
%python_build
@@ -57,6 +58,7 @@ of a test
%files %{python_files}
%doc CHANGELOG.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/pytest_mock
%{python_sitelib}/pytest_mock-%{version}*-info
%changelog