me
/
guix
Archived
1
0
Fork 0

gnu: python-click: Hardlink path to 'locale'.

* gnu/packages/python.scm (python-click, python2-click)[arguments]: New
field.
master
Ben Woodcroft 2016-09-21 11:49:32 +10:00
parent f75bb2c3f2
commit e2ab5a0904
No known key found for this signature in database
GPG Key ID: E44DCCD146E0CCF4
1 changed files with 11 additions and 0 deletions

View File

@ -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")