gnu: python-s3transfer: Fix build with Python 3.8.

* gnu/packages/python-web.scm (python-s3transfer)[arguments]: Add a 'patch
phase to fix a test to work under Python 3.8.
This commit is contained in:
Christopher Baines 2020-05-02 15:43:37 +01:00
parent 68c7f577d8
commit c63bd84781
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -2204,6 +2204,15 @@ (define-public python-s3transfer
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-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 (replace 'check
(lambda _ (lambda _
;; Some of the 'integration' tests require network access or ;; Some of the 'integration' tests require network access or