~ruther/guix-local

e2ab5a09048e648e6128ad173df3ece8a673c9a3 — Ben Woodcroft 9 years ago f75bb2c
gnu: python-click: Hardlink path to 'locale'.

* gnu/packages/python.scm (python-click, python2-click)[arguments]: New
field.
1 files changed, 11 insertions(+), 0 deletions(-)

M gnu/packages/python.scm
M gnu/packages/python.scm => gnu/packages/python.scm +11 -0
@@ 2307,6 2307,17 @@ is used by the Requests library to verify HTTPS requests.")
        (base32
         "1sggipyz52crrybwbr9xvwxd4aqigvplf53k9w3ygxmzivd1jsnc"))))
    (build-system python-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'fix-paths
           (lambda* (#:key inputs #:allow-other-keys)
             (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
                                                 "cross-libc" "libc"))))
               (substitute* "click/_unicodefun.py"
                 (("'locale'")
                  (string-append "'" glibc "/bin/locale'"))))
             #t)))))
    (native-inputs
     `(("python-setuptools" ,python-setuptools)))
    (home-page "http://click.pocoo.org")