[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
90/142: gnu: python-igraph: Update to 0.9.8.
From: |
guix-commits |
Subject: |
90/142: gnu: python-igraph: Update to 0.9.8. |
Date: |
Mon, 10 Jan 2022 13:07:26 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit 5651e46983866024fe1df4fa4feafd4d30b99c4c
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Dec 23 01:15:10 2021 -0500
gnu: python-igraph: Update to 0.9.8.
* gnu/packages/graph.scm (python-igraph): Update to 0.9.8.
[origin]: Fetch from git.
[configure-flags]: Delete argument.
[phases]{build}: No longer override phase.
{check}: Preserve ordering and streamline.
{specify-libigraph-location}: New phase.
[native-inputs]: Remove pkg-config.
[home-page]: Update.
---
gnu/packages/graph.scm | 55 ++++++++++++++++++++++++++++++--------------------
1 file changed, 33 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm
index d33fcdf6dd..90f32cc23e 100644
--- a/gnu/packages/graph.scm
+++ b/gnu/packages/graph.scm
@@ -27,6 +27,7 @@
(define-module (gnu packages graph)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix utils)
@@ -146,36 +147,46 @@ more.")
(license license:gpl2+)))
(define-public python-igraph
- (package (inherit igraph)
+ (package/inherit igraph
(name "python-igraph")
- (version "0.8.2")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "python-igraph" version))
- (sha256
- (base32 "0wkxrs28qdvnrz7d4jzcf2bh6v2yqzx3wyfziihfgsi2gn6n60a6"))))
+ (version "0.9.8")
+ (source (origin
+ (method git-fetch)
+ ;; The PyPI archive lacks tests.
+ (uri (git-reference
+ (url "https://github.com/igraph/python-igraph")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0nwwfqvj4gp91b9j67zq4l58srr4r8qfqh90ygx17zyrybkx7ns6"))))
(build-system python-build-system)
(arguments
- '(#:configure-flags
- (list "--use-pkg-config")
- #:phases
- (modify-phases %standard-phases
- (replace 'build
- (lambda _
- (invoke "python" "./setup.py" "build" "--use-pkg-config")))
- (delete 'check)
- (add-after 'install 'check
- (lambda* (#:key inputs outputs #:allow-other-keys)
- (add-installed-pythonpath inputs outputs)
- (invoke "pytest" "-v"))))))
+ (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")))))))
(inputs
(list igraph))
(propagated-inputs
(list python-texttable))
(native-inputs
- (list pkg-config python-pytest))
- (home-page "https://pypi.org/project/python-igraph/")
+ (list python-pytest))
+ (home-page "https://igraph.org/python/")
(synopsis "Python bindings for the igraph network analysis library")))
(define-public r-rbiofabric
- 58/142: gnu: glade3: Add python to native inputs., (continued)
- 58/142: gnu: glade3: Add python to native inputs., guix-commits, 2022/01/10
- 55/142: gnu: python-msgpack: Update to 1.0.3., guix-commits, 2022/01/10
- 59/142: gnu: python-curio: Disable newly failing 'test_timeout' test., guix-commits, 2022/01/10
- 07/142: gnu: python-tomli: Update to 2.0.0., guix-commits, 2022/01/10
- 22/142: gnu: cairo: Use bash-minimal unconditionally., guix-commits, 2022/01/10
- 40/142: gnu: gnome-backgrounds: Update to 41.0., guix-commits, 2022/01/10
- 43/142: gnu: epiphany: Update to 41.2., guix-commits, 2022/01/10
- 45/142: gnu: wayland-protocols: Add python to native inputs., guix-commits, 2022/01/10
- 75/142: gnu: python-matplotlib: Update to 3.5.1 and run tests in parallel., guix-commits, 2022/01/10
- 87/142: gnu: python-pysam: Update to 0.18.0., guix-commits, 2022/01/10
- 90/142: gnu: python-igraph: Update to 0.9.8.,
guix-commits <=
- 91/142: gnu: tbb-2020: Use ld.gold to work around segfaults in check phase., guix-commits, 2022/01/10
- 103/142: gnu: python-scikit-learn: Remove obsolete phase., guix-commits, 2022/01/10
- 104/142: gnu: jalv-select: Remove obsolete phase., guix-commits, 2022/01/10
- 102/142: gnu: go-ipfs: Remove obsolete phase., guix-commits, 2022/01/10
- 106/142: gnu: helm: Remove obsolete phase., guix-commits, 2022/01/10
- 113/142: gnu: meson: Update to 0.60.3., guix-commits, 2022/01/10
- 114/142: gnu: glib: Update to 2.70.2., guix-commits, 2022/01/10
- 128/142: gnu: rust: Use rust-1.57.0., guix-commits, 2022/01/10
- 127/142: gnu: simple-scan: Add python to native inputs., guix-commits, 2022/01/10
- 126/142: gnu: gnome-calculator: Add python to native inputs., guix-commits, 2022/01/10