ports/graphics/py-cairocffi/files/patch-cairocffi_test__pixbuf.py
Kubilay Kocak 6be23222ef graphics/py-cairocffi: Update to 1.0.2
- Update COMMENT, match upstream setup.py:description
  - Update USES=python, now only supports Python 3.x
  - Switch to autoplist (using --record), update pkg-plist to add missing
    files until resolved upstream [1][2][3][4]

Changelog:

  https://github.com/Kozea/cairocffi/blob/v1.0.2/NEWS.rst

[1] https://github.com/Kozea/cairocffi/issues/108
[2] https://github.com/spatialaudio/python-sounddevice/issues/116
[3] https://github.com/tych0/xcffib/issues/92
[4] See Also: https://groups.google.com/forum/#!topic/python-cffi/oX2T_Y5m99I

PR:			237884
Reviewed by:		mat, dch (maintainer)
Approved by:		dch (maintainer)
Differential Revision:	D20352
2019-05-27 12:58:08 +00:00

19 lines
506 B
Python

# Skip the test (module) if gdk_pixbuf can't be loaded
# TODO: Report/resolve/PR upstream
--- cairocffi/test_pixbuf.py.orig 2019-02-06 21:50:58 UTC
+++ cairocffi/test_pixbuf.py
@@ -15,7 +15,12 @@ import zlib
import pytest
-from . import constants, pixbuf
+from . import constants
+
+try:
+ from . import pixbuf
+except OSError:
+ pytestmark = pytest.mark.skip('Could not find/load gdk_pixbuf-2.0')
PNG_BYTES = base64.b64decode(
b'iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAYAAACddGYaAAAAE0lEQV'