gnu: python-binaryornot: Fix build.
authorDanny Milosavljevic <dannym@scratchpost.org>
Wed, 9 Oct 2019 13:59:52 +0000 (15:59 +0200)
committerDanny Milosavljevic <dannym@scratchpost.org>
Wed, 9 Oct 2019 13:59:52 +0000 (15:59 +0200)
Fixes <https://bugs.gnu.org/37678>.

* gnu/packages/python-xyz.scm (python-binaryornot)[arguments]<#:phases>[patch-tests]:
New phase.

gnu/packages/python-xyz.scm

index c305322..068b17f 100644 (file)
@@ -10972,6 +10972,16 @@ hardware-accelerated multitouch applications.")
                (base32
                 "0qc006986rb6bcbmiymwgcl1mns2jphr1j7sr7nk41nlr7gh359m"))))
     (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-test
+           (lambda _
+             ;; TypeError: binary() got an unexpected keyword argument
+             ;; 'average_size'.
+             (substitute* "tests/test_check.py"
+              (("average_size=512") ""))
+             #t)))))
     (propagated-inputs
      `(("python-chardet" ,python-chardet)
        ("python-hypothesis" ,python-hypothesis)))