~ruther/guix-local

159931a9729659144fdc9db382ff9f8f1e96e999 — Sharlatan Hellseher 5 months ago 3af52f8
gnu: python-pyftpdlib: Skip one test on aarch64-linux.

* gnu/packages/python-xyz.scm (python-pyftpdlib)[arguments]
<test-flags>: Conditionally deselect one test when target is
aarch64-linux.

Change-Id: I027207d97a7ee24e5482bf676b7b108d2789946e
1 files changed, 17 insertions(+), 4 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +17 -4
@@ 17150,10 17150,23 @@ the @code{sendfile(2)} system call.")
    (build-system pyproject-build-system)
    ;; Using Pytest instead of the Makefile causes the command line tests to
    ;; fail on unknown Pytest arguments.
    (arguments (list #:test-flags #~(list "-k" "not TestCommandLineParser")))
    (native-inputs (list python-psutil python-pytest python-setuptools
                         python-wheel))
    (propagated-inputs (list python-pyopenssl python-pysendfile))
    (arguments
     (list
      #:test-flags
      #~(list "-k" "not TestCommandLineParser"
              #$@(if (target-aarch64?)
                     ;; TimeoutError: timed out
                     '((string-append "--deselect=pyftpdlib/test/test_functional.py"
                                      "::TestTimeouts::test_idle_data_timeout2"))
                     '()))))
    (native-inputs
     (list python-psutil
           python-pytest
           python-setuptools
           python-wheel))
    (propagated-inputs
     (list python-pyopenssl
           python-pysendfile))
    (home-page "https://github.com/giampaolo/pyftpdlib/")
    (synopsis "Asynchronous and scalable Python FTP server library")
    (description "The Python FTP server library provides a high-level