mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
gnu: python-xcffib: Fix libxcb.so.1 path.
* gnu/packages/python.scm (python-xcffib)[arguments]<#:phases>: Add phase to embed full path to libxcb.so.1. Signed-off-by: Marius Bakke <mbakke@fastmail.com>
This commit is contained in:
parent
7a0efa77a4
commit
e46bf22391
1 changed files with 7 additions and 1 deletions
|
@ -4765,10 +4765,16 @@ (define-public python-xcffib
|
|||
`(("python-cffi" ,python-cffi) ; used at run time
|
||||
("python-six" ,python-six)))
|
||||
(arguments
|
||||
`(;; FIXME: Tests cannot load libxcb.so.1
|
||||
`(;; FIXME: Tests need more work. See ".travis.yml" in the repository.
|
||||
#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-libxcb-path
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((libxcb (assoc-ref inputs "libxcb")))
|
||||
(substitute* '("xcffib/__init__.py")
|
||||
(("^soname = \"") (string-append "soname = \"" libxcb "/lib/")))
|
||||
#t)))
|
||||
(add-after 'install 'install-doc
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let ((doc (string-append (assoc-ref outputs "out") "/share"
|
||||
|
|
Loading…
Reference in a new issue