+++ /dev/null
---- sympy-1.5.1/sympy/utilities/runtests.py.orig 2019-12-21 00:38:01.000000000 +0100
-+++ sympy-1.5.1/sympy/utilities/runtests.py 2020-04-08 21:39:01.146014778 +0200
-@@ -524,8 +524,10 @@
- split = kwargs.get('split', None)
- time_balance = kwargs.get('time_balance', True)
- blacklist = kwargs.get('blacklist', ['sympy/integrals/rubi/rubi_tests/tests'])
-- if ON_TRAVIS:
-+ if ON_TRAVIS or os.getenv('DISPLAY', '') == '':
- # pyglet does not work on Travis
-+ blacklist.extend('sympy/categories/tests/test_drawing.py')
-+ blacklist.extend('sympy/printing/tests/test_preview.py')
- blacklist.extend(['sympy/plotting/pygletplot/tests'])
- blacklist = convert_to_native_paths(blacklist)
- fast_threshold = kwargs.get('fast_threshold', None)
-@@ -702,7 +704,9 @@
- import matplotlib
- matplotlib.use('Agg')
-
-- if ON_TRAVIS or import_module('pyglet') is None:
-+ if ON_TRAVIS or os.getenv('DISPLAY', '') == '' or import_module('pyglet') is None:
-+ blacklist.extend(["sympy/categories/diagram_drawing.py"])
-+ blacklist.extend(["sympy/printing/preview.py"])
- blacklist.extend(["sympy/plotting/pygletplot"])
-
- if import_module('theano') is None:
# Conditional build:
%bcond_without doc # HTML and PDF documentation
%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
+%bcond_with python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
Summary: Python 2 library for symbolic mathematics
Summary(pl.UTF-8): Biblioteka Pythona 2 do matematyki symbolicznej
Name: python-sympy
-Version: 1.5.1
+Version: 1.7.1
Release: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/sympy/
Source0: https://files.pythonhosted.org/packages/source/s/sympy/sympy-%{version}.tar.gz
-# Source0-md5: b11b310c3e1642bf66e51038cb3c0021
-Patch0: %{name}-nodisplay.patch
+# Source0-md5: f5973bcbe33fdc86203ca397cc901994
URL: https://www.sympy.org/
BuildRequires: gettext
BuildRequires: graphviz
%prep
%setup -q -n sympy-%{version}
-%patch0 -p1
%build
%if %{with python2}