[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: python-click: Hardlink path to 'locale'.
From: |
Ben Woodcroft |
Subject: |
01/02: gnu: python-click: Hardlink path to 'locale'. |
Date: |
Wed, 21 Sep 2016 08:43:32 +0000 (UTC) |
benwoodcroft pushed a commit to branch master
in repository guix.
commit e2ab5a09048e648e6128ad173df3ece8a673c9a3
Author: Ben Woodcroft <address@hidden>
Date: Wed Sep 21 11:49:32 2016 +1000
gnu: python-click: Hardlink path to 'locale'.
* gnu/packages/python.scm (python-click, python2-click)[arguments]: New
field.
---
gnu/packages/python.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 65e6389..af5da9b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -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")