lbraun pushed a commit to branch wip-python-pep517
in repository guix.
commit a92756c21ffa44fe199a368c6fcc437d59657dd3
Author: Lars-Dominik Braun <[email protected]>
AuthorDate: Sat Jan 15 20:04:46 2022 +0100
gnu: python-igraph: Fix #:configure-flags.
* (python-igraph)[arguments]: Remove custom obsolete #:phases, turn
#:configure-flags into alist.
[origin]: Unvendor igraph sources.
---
gnu/packages/graph.scm | 20 ++------------------
1 file changed, 2 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index 1e5e64de62..f5b22efa29 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -156,24 +156,8 @@ more.")
"06qvwmiw2klk3bg8g5af0ppjwrm9kzy4595w5d06qh2v3gq0svbk"))))
(build-system python-build-system)
(arguments
- (list
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'unpack 'specify-libigraph-location
- (lambda _
- (let ((igraph #$(this-package-input "igraph")))
- (substitute* "setup.py"
- (("(LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ).*" _ var)
- (string-append
- var (format #f "[~s]~%" (string-append igraph
-
"/include/igraph"))))
- (("(LIBIGRAPH_FALLBACK_LIBRARY_DIRS = ).*" _ var)
- (string-append
- var (format #f "[~s]~%" (string-append igraph
"/lib"))))))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-v")))))))
+ `(#:configure-flags
+ `(@ ("--global-option" . ,(list "--use-pkg-config")))))
(inputs
(list igraph))
(propagated-inputs