Accepting request 908596 from home:mcalabkova:branches:devel:languages:python:numeric

- Fix tests with inkscape11.patch

OBS-URL: https://build.opensuse.org/request/show/908596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-matplotlib?expand=0&rev=54
This commit is contained in:
2021-07-27 12:49:17 +00:00
committed by Git OBS Bridge
parent 7e83f7af23
commit c84b627cee
3 changed files with 34 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-matplotlib
# spec file
#
# Copyright (c) 2021 SUSE LLC
#
@@ -45,6 +45,8 @@ Source99: https://downloads.sourceforge.net/project/freetype/freetype2/2.6
Patch0: 0001-FIX-Pillow-asarray-bug.patch
# PATCH-FIX-UPSTREAM 0002-Dont-modify-arrays-when-masking-values-for-log.patch - Fix from upstream for numpy 1.21.0
Patch1: 0002-Dont-modify-arrays-when-masking-values-for-log.patch
# PATCH-FIX-UPSTREAM https://github.com/matplotlib/matplotlib/commit/73b7abf14c77014ab2436e7691e19cbee5864f4b Fix tests with Inkscape 1.1.
Patch2: inkscape11.patch
BuildRequires: %{python_module Cycler >= 0.10}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module kiwisolver >= 1.0.1}
@@ -251,6 +253,7 @@ for %{name} plotting package
%setup -q -n matplotlib-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
#copy freetype to the right location, so that matplotlib will not try to download it
mkdir -p ~/.cache/matplotlib/
SHA=($(sha256sum %{SOURCE98}))