gnu: scons: Update to 4.5.0.

* gnu/packages/build-tools.scm (scons): Update to 4.5.0.
[arguments]{check phase}: Remove failing tests.

Change-Id: If17c26174f7790eee562c7c99e3be39fe1e57197
This commit is contained in:
Steve George 2025-04-09 09:39:21 +01:00 committed by Andreas Enge
parent 7424092d84
commit 88a160fe3f
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -70,6 +70,7 @@
#:use-module (gnu packages protobuf) #:use-module (gnu packages protobuf)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages python-build) #:use-module (gnu packages python-build)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto) #:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web) #:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz) #:use-module (gnu packages python-xyz)
@ -79,6 +80,7 @@
#:use-module (gnu packages tls) #:use-module (gnu packages tls)
#:use-module (gnu packages unicode) #:use-module (gnu packages unicode)
#:use-module (gnu packages version-control) #:use-module (gnu packages version-control)
#:use-module (gnu packages xml)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system pyproject) #:use-module (guix build-system pyproject)
#:use-module (guix build-system python)) #:use-module (guix build-system python))
@ -436,7 +438,7 @@ other lower-level build files.")))
(define-public scons (define-public scons
(package (package
(name "scons") (name "scons")
(version "4.4.0") (version "4.5.0")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -446,7 +448,7 @@ other lower-level build files.")))
(patches (search-patches "scons-test-environment.patch")) (patches (search-patches "scons-test-environment.patch"))
(sha256 (sha256
(base32 (base32
"1czswx1fj2j48rspkrvarkr43k0vii9rsmz054c9yby1dq362fgr")))) "1skz1kzhwsp54i71jrsg46rkxwicfici7pq6qmfhlqd5zhrg21zb"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
(list (list
@ -467,7 +469,9 @@ other lower-level build files.")))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "python" "runtest.py" "--all" "--unit-only")))) ;; remove these tests as they require a read/write filesystem
(delete-file "SCons/Variables/PathVariableTests.py")
(invoke "python" "runtest.py" "--all" "--unit-only" ))))
(add-after 'install 'move-manuals (add-after 'install 'move-manuals
(lambda _ (lambda _
;; XXX: For some reason manuals get installed to the top-level ;; XXX: For some reason manuals get installed to the top-level
@ -483,7 +487,7 @@ other lower-level build files.")))
stray-manuals)))))))) stray-manuals))))))))
(native-inputs (native-inputs
;; TODO: Add 'fop' when available in Guix to generate manuals. ;; TODO: Add 'fop' when available in Guix to generate manuals.
(list python-wheel (list python-setuptools python-lxml python-wheel
;;For tests. ;;For tests.
python-psutil)) python-psutil))
(home-page "https://scons.org/") (home-page "https://scons.org/")