gnu: python-s3transfer: Fix build with Python 3.8.
authorChristopher Baines <mail@cbaines.net>
Sat, 2 May 2020 14:43:37 +0000 (15:43 +0100)
committerChristopher Baines <mail@cbaines.net>
Mon, 4 May 2020 17:12:40 +0000 (18:12 +0100)
* gnu/packages/python-web.scm (python-s3transfer)[arguments]: Add a 'patch
phase to fix a test to work under Python 3.8.

gnu/packages/python-web.scm

index 2774924..56887ef 100644 (file)
@@ -2204,6 +2204,15 @@ Betamax.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'patch
+           (lambda _
+             ;; There's a small issue with one test with Python 3.8, this
+             ;; change has been suggested upstream:
+             ;; https://github.com/boto/s3transfer/pull/164
+             (substitute* "tests/unit/test_s3transfer.py"
+               (("super\\(FailedDownloadParts, self\\)\\.submit\\(function\\)")
+                "futures.Future()"))
+             #t))
          (replace 'check
            (lambda _
              ;; Some of the 'integration' tests require network access or