14
0
forked from pool/python-pygal

- Add patch to work with python 3.8:

* python38.patch
- Restrict pytest to < 3.0 as the testing code does not work
  upstream on anything else

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygal?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2019-07-19 12:35:57 +00:00
committed by Git OBS Bridge
parent 020473c71e
commit 3b996b0eae
3 changed files with 42 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ Group: Development/Languages/Python
URL: http://pygal.org/
Source: https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
Source10: https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
Patch0: python38.patch
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pyquery}
@@ -42,7 +43,8 @@ Recommends: python-CairoSVG
%endif
# SECTION test requirements
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
# https://github.com/Kozea/pygal/pull/340
BuildRequires: %{python_module pytest < 4.0}
# /SECTION
%python_subpackages
@@ -52,6 +54,7 @@ It supports various chart types and CSS styling.
%prep
%setup -q -n pygal-%{version}
%patch0 -p1
cp %{SOURCE10} .
%build