~ruther/guix-local

a521bca2dc83d7e9315f89cbe170eb032d67d7a6 — Sharlatan Hellseher 2 months ago 6d85fc4
gnu: python-pyvirtualdisplay: Enable more tests.

* gnu/packages/python-xyz.scm (python-pyvirtualdisplay):
[arguments] <test-flags>: Rework skipped tests.
[propagated-inputs]: Remove python-easyprocess and python-pillow.
[native-inputs]: Remove python-wheel; add python-easyprocess.

Change-Id: Ic23d47046b93a0120239fbdf9c3664e1ed2561bc
1 files changed, 23 insertions(+), 11 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +23 -11
@@ 22659,18 22659,30 @@ etc.")
    (build-system pyproject-build-system)
    (arguments
     (list
      ;; tests: 27 passed, 8 deselected
      #:test-flags
      #~(list "--ignore=tests/test_examples.py"
              ;; OSError: Pillow was built without XCB support
              "--ignore=tests/test_smart.py"
              "--ignore=tests/test_smart2.py"
              "--ignore=tests/test_smart_thread.py")))
    (native-inputs
     (list python-entrypoint2 python-psutil python-pytest
           python-setuptools python-vncdotool-bootstrap python-wheel
           xmessage xorg-server-for-tests))
    (propagated-inputs
     (list python-easyprocess python-pillow))
      ;; TODO: Add libxcb to python-pillow on the next python-team cycle.
      ;; OSError: Pillow was built without XCB support
      #~(list #$@(map (lambda (test) (string-append "--deselect="
                                                    "tests/"
                                                    test))
                      (list "test_smart.py::test_slowshot"
                            "test_smart.py::test_slowshot_with"
                            "test_smart.py::test_slowshot_nocrop"
                            "test_smart.py::test_slowshot_timeout"
                            "test_smart.py::test_slowshot_timeout_nocrop"
                            "test_smart2.py::test_double"
                            "test_smart_thread.py::test_smart"
                            "test_examples.py::test_screenshot")))))
    (native-inputs
     (list python-easyprocess
           python-entrypoint2
           python-psutil
           python-pytest
           python-setuptools
           python-vncdotool-bootstrap
           xmessage
           xorg-server-for-tests))
    (home-page "https://github.com/ponty/pyvirtualdisplay")
    (synopsis "Python wrapper for Xvfb, Xephyr and Xvnc")
    (description