summary refs log tree commit diff
path: root/gnu/packages/tls.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2016-02-04 22:12:42 -0500
committerLeo Famulari <leo@famulari.name>2016-02-08 23:45:06 -0500
commit9bee9d87dcf260506f22613e85f29ec485f35f74 (patch)
treecc9b02d5aa7864e0c7137bba0a111341a97c5a42 /gnu/packages/tls.scm
parent0c7320dc8992f0846fd063f21f0efa4d208c9ad9 (diff)
downloadguix-9bee9d87dcf260506f22613e85f29ec485f35f74.tar.gz
gnu: acme: Disable egg compression.
* gnu/packages/python.scm (acme)[arguments]: Add
'disable-egg-compression' phase.
Diffstat (limited to 'gnu/packages/tls.scm')
-rw-r--r--gnu/packages/tls.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index 9728cc17cb..f79db32497 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -330,7 +330,18 @@ security, and applying best practice development processes.")
          "1x6fd3cw9pq45k71rgmxi91hmdmnbf1xxvlfwv31fmzs5255dlbw"))))
     (build-system python-build-system)
     (arguments
-     `(#:python ,python-2))
+     `(#:python ,python-2
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'disable-egg-compression
+           (lambda _
+             ;; Do not compress the egg.
+             ;; See <http://bugs.gnu.org/20765>.
+             (let ((port (open-file "setup.cfg" "a")))
+               (display "\n[easy_install]\nzip_ok = 0\n"
+                        port)
+               (close-port port)
+               #t))))))
     ;; TODO: Add optional inputs for testing and building documentation.
     (native-inputs
      `(("python2-mock" ,python2-mock)