14
0
forked from pool/python-pyeapi

Accepting request 967321 from home:pgajdos:python

- do not require python-mock for build

OBS-URL: https://build.opensuse.org/request/show/967321
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyeapi?expand=0&rev=9
This commit is contained in:
2022-04-06 14:52:24 +00:00
committed by Git OBS Bridge
parent f0d24c4090
commit b168beb1c0
2 changed files with 7 additions and 1 deletions

View File

@@ -27,7 +27,6 @@ License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://github.com/arista-eosplus/pyeapi
Source: https://files.pythonhosted.org/packages/source/p/pyeapi/pyeapi-%{version}.tar.gz
BuildRequires: %{python_module mock}
BuildRequires: %{python_module netaddr}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -56,6 +55,8 @@ developing custom implementations.
# Deprecated collections usage since Python 3.3
sed -i 's/from collections import/from collections.abc import/' pyeapi/api/abstract.py
sed -i 's/collections.Iterable/collections.abc.Iterable/' test/unit/test_utils.py
# https://github.com/arista-eosplus/pyeapi/issues/224
sed -i 's/from mock/from unittest.mock/' test/*/test*.py
%build
%python_build