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.master
parent
3c50cb75ee
commit
5651e46983
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
(define-module (gnu packages graph)
|
(define-module (gnu packages graph)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix git-download)
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
|
@ -146,36 +147,46 @@ more.")
|
||||||
(license license:gpl2+)))
|
(license license:gpl2+)))
|
||||||
|
|
||||||
(define-public python-igraph
|
(define-public python-igraph
|
||||||
(package (inherit igraph)
|
(package/inherit igraph
|
||||||
(name "python-igraph")
|
(name "python-igraph")
|
||||||
(version "0.8.2")
|
(version "0.9.8")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
(method git-fetch)
|
||||||
(method url-fetch)
|
;; The PyPI archive lacks tests.
|
||||||
(uri (pypi-uri "python-igraph" version))
|
(uri (git-reference
|
||||||
(sha256
|
(url "https://github.com/igraph/python-igraph")
|
||||||
(base32 "0wkxrs28qdvnrz7d4jzcf2bh6v2yqzx3wyfziihfgsi2gn6n60a6"))))
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0nwwfqvj4gp91b9j67zq4l58srr4r8qfqh90ygx17zyrybkx7ns6"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:configure-flags
|
(list
|
||||||
(list "--use-pkg-config")
|
#:phases
|
||||||
#:phases
|
#~(modify-phases %standard-phases
|
||||||
(modify-phases %standard-phases
|
(add-after 'unpack 'specify-libigraph-location
|
||||||
(replace 'build
|
(lambda _
|
||||||
(lambda _
|
(let ((igraph #$(this-package-input "igraph")))
|
||||||
(invoke "python" "./setup.py" "build" "--use-pkg-config")))
|
(substitute* "setup.py"
|
||||||
(delete 'check)
|
(("(LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ).*" _ var)
|
||||||
(add-after 'install 'check
|
(string-append
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
var (format #f "[~s]~%" (string-append igraph
|
||||||
(add-installed-pythonpath inputs outputs)
|
"/include/igraph"))))
|
||||||
(invoke "pytest" "-v"))))))
|
(("(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
|
(inputs
|
||||||
(list igraph))
|
(list igraph))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-texttable))
|
(list python-texttable))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config python-pytest))
|
(list python-pytest))
|
||||||
(home-page "https://pypi.org/project/python-igraph/")
|
(home-page "https://igraph.org/python/")
|
||||||
(synopsis "Python bindings for the igraph network analysis library")))
|
(synopsis "Python bindings for the igraph network analysis library")))
|
||||||
|
|
||||||
(define-public r-rbiofabric
|
(define-public r-rbiofabric
|
||||||
|
|
Reference in New Issue