Archived
1
0
Fork 0

gnu: python-igraph: Update to 0.10.4-0.b6ebd8e.

* gnu/packages/graph.scm (python-igraph): Update to 0.10.4-0.b6ebd8e.
[build-system]: Use pyproject-build-system.
[phases]: Delete check phase override.
This commit is contained in:
Maxim Cournoyer 2023-01-27 13:28:50 -05:00
parent 0b1fae08d0
commit c539be939b
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -34,6 +34,7 @@
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python) #:use-module (guix build-system python)
#:use-module (guix build-system r) #:use-module (guix build-system r)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
@ -146,48 +147,47 @@ more.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public python-igraph (define-public python-igraph
(package ;; Temporarily use a precise commit, as there was a mistake in the last
(inherit igraph) ;; release that was fixed by it (see:
(name "python-igraph") ;; https://github.com/igraph/python-igraph/issues/632).
(version "0.9.11") (let ((revision "0")
(source (origin (commit "b6ebd8eb277fc1d0e33340a6624629a10c638992"))
(method git-fetch) (package
;; The PyPI archive lacks tests. (inherit igraph)
(uri (git-reference (name "python-igraph")
(url "https://github.com/igraph/python-igraph") (version (git-version "0.10.4" revision commit))
(commit version))) (source (origin
(file-name (git-file-name name version)) (method git-fetch)
(sha256 ;; The PyPI archive lacks tests.
(base32 (uri (git-reference
"1xlr0cnf3a1vs9n2psvgrmjhld4n1xr79kkjqzby4pxxyzk1bydn")))) (url "https://github.com/igraph/python-igraph")
(build-system python-build-system) (commit commit)))
(arguments (file-name (git-file-name name version))
(list (sha256
#:phases (base32
#~(modify-phases %standard-phases "0dhrz5a6pi6vs94fm8q4nmkh6v1nmpw1sk482xls213zcbbh67hd"))))
(add-after 'unpack 'specify-libigraph-location (build-system pyproject-build-system)
(lambda _ (arguments
(let ((igraph #$(this-package-input "igraph"))) (list
(substitute* "setup.py" #:phases
(("(LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ).*" _ var) #~(modify-phases %standard-phases
(string-append (add-after 'unpack 'specify-libigraph-location
var (format #f "[~s]~%" (string-append igraph (lambda _
"/include/igraph")))) (let ((igraph #$(this-package-input "igraph")))
(("(LIBIGRAPH_FALLBACK_LIBRARY_DIRS = ).*" _ var) (substitute* "setup.py"
(string-append (("(LIBIGRAPH_FALLBACK_INCLUDE_DIRS = ).*" _ var)
var (format #f "[~s]~%" (string-append igraph "/lib")))))))) (string-append
(replace 'check var (format #f "[~s]~%"
(lambda* (#:key tests? #:allow-other-keys) (string-append igraph "/include/igraph"))))
(when tests? (("(LIBIGRAPH_FALLBACK_LIBRARY_DIRS = ).*" _ var)
(invoke "pytest" "-v"))))))) (string-append
(inputs var (format #f "[~s]~%"
(list igraph)) (string-append igraph "/lib")))))))))))
(propagated-inputs (inputs (list igraph))
(list python-texttable)) (propagated-inputs (list python-texttable))
(native-inputs (native-inputs (list python-pytest))
(list python-pytest)) (home-page "https://igraph.org/python/")
(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
(let ((commit "666c2ae8b0a537c006592d067fac6285f71890ac") (let ((commit "666c2ae8b0a537c006592d067fac6285f71890ac")