forked from pool/python-pytest-shutil
- add fix_pathlib.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-shutil?expand=0&rev=8
This commit is contained in:
@@ -25,6 +25,7 @@ License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/manahl/pytest-plugins
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pytest-shutil/pytest-shutil-%{version}.tar.gz
|
||||
Patch0: fix_pathlib.patch
|
||||
BuildRequires: %{python_module execnet}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module path.py}
|
||||
@@ -55,8 +56,7 @@ tools for automated tests.
|
||||
|
||||
%prep
|
||||
%setup -q -n pytest-shutil-%{version}
|
||||
sed -i 's/contextlib2/contextlib2;python_version<"3"/' setup.py
|
||||
sed -i 's/path\.py/path\.py;python_version<"3"/' setup.py
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user