From 914f55e0b7d537bdb308d7e40e5e7156e3c05355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miguel=20S=C3=A1nchez=20Garc=C3=ADa?= Date: Fri, 26 May 2017 18:35:17 +0200 Subject: [PATCH] gnu: python-xcffib: Fix libxcb.so.1 path. * gnu/packages/python.scm (python-xcffib): Fix libxcb.so.1 path and enable tests. --- gnu/packages/python.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5b9519bbf..6e85ec529 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4710,9 +4710,7 @@ a front-end for C compilers or analysis tools.") `(("python-cffi" ,python-cffi) ; used at run time ("python-six" ,python-six))) (arguments - `(;; FIXME: Tests cannot load libxcb.so.1 - #:tests? #f - #:phases + `(#:phases (modify-phases %standard-phases (add-after 'install 'install-doc (lambda* (#:key outputs #:allow-other-keys) @@ -4721,7 +4719,12 @@ a front-end for C compilers or analysis tools.") (mkdir-p doc) (copy-file "README.md" (string-append doc "/README.md")) - #t)))))) + #t))) + (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/"))))))))) (home-page "https://github.com/tych0/xcffib") (synopsis "XCB Python bindings") (description -- 2.13.0