gnu: python-networkx: Update to 3.4.2.

* gnu/packages/python-xyz.scm (python-networkx): Update to 3.4.2.
[build-system]: Swap to pyproject-build-system.
[arguments]<test-flags>: Run test in parallel.
<phases>: Use default 'check phase..
[native-inputs]: Add python-pytest-xdist, python-setuptools, and
python-wheel.

Change-Id: I18a7b1cbeafa0804302d1b53a50e178ad10d7b4b
This commit is contained in:
Sharlatan Hellseher 2024-11-29 00:25:30 +00:00
parent 6d3f2b8e08
commit 943f217ecc
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -13875,26 +13875,27 @@ interfaces in an easy and portable manner.")
(define-public python-networkx (define-public python-networkx
(package (package
(name "python-networkx") (name "python-networkx")
(version "2.8.6") (version "3.4.2")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "networkx" version)) (uri (pypi-uri "networkx" version))
(sha256 (sha256
(base32 "19h18f5j79l7kmwm5cvm75fadjgmkzw5m3pyvb9cnq0860q7faxx")))) (base32 "1qaks3c3h5qlw25z949q3plw8iwgm9h152kwnam64lwc89lkcz1h"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases (list
(replace 'check #:test-flags
(lambda* (#:key tests? #:allow-other-keys) #~(list "--numprocesses" (number->string (parallel-job-count)))))
(if tests? (native-inputs
(invoke "pytest" "-vv" "--pyargs" "networkx") (list python-pytest
(format #t "test suite not run~%")) #t))))) python-pytest-xdist
(propagated-inputs (list python-decorator)) python-setuptools
(native-inputs (list python-pytest)) python-wheel))
(propagated-inputs
(list python-decorator))
(home-page "https://networkx.github.io/") (home-page "https://networkx.github.io/")
(synopsis (synopsis "Python module for creating and manipulating graphs and networks")
"Python module for creating and manipulating graphs and networks")
(description (description
"NetworkX is a Python package for the creation, manipulation, and study "NetworkX is a Python package for the creation, manipulation, and study
of the structure, dynamics, and functions of complex networks.") of the structure, dynamics, and functions of complex networks.")