15
0

Accepting request 798900 from home:glaubitz:branches:devel:languages:python

- Add patch to switch from external mock to unittest.mock
  + o_switch_to_unitest_mock.patch

OBS-URL: https://build.opensuse.org/request/show/798900
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oauthlib?expand=0&rev=46
This commit is contained in:
Tomáš Chvátal
2020-04-29 12:29:07 +00:00
committed by Git OBS Bridge
parent 7913dae9f1
commit dc1720eef3
3 changed files with 441 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-oauthlib
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,10 +25,10 @@ License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/oauthlib/oauthlib
Source: https://files.pythonhosted.org/packages/source/o/oauthlib/oauthlib-%{version}.tar.gz
Patch: o_switch_to_unitest_mock.patch
BuildRequires: %{python_module PyJWT >= 1.0.0}
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pyasn1}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -58,6 +58,7 @@ veneer on top of OAuthLib and get OAuth support for very little effort.
%prep
%setup -q -n oauthlib-%{version}
%patch0 -p1
%build
%python_build