From 6c2b35bfe1e0c630bd4e21cf5888fc94df67e52c Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 8 Nov 2025 16:07:12 +0100 Subject: [PATCH] gnu: west: Update to 1.5.0. * gnu/packages/embedded.scm (west): Update to 1.5.0. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Ignore failing test. <#:phases>: Add phase 'configure-tests. [native-inputs]: Add git-minimal, python-pytest, python-setuptools. [description]: Improve style. Change-Id: I325826783313d62f9fa33b5e017d7990ad9527bd Signed-off-by: Sharlatan Hellseher --- gnu/packages/embedded.scm | 43 +++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index 7a56e4cfae3..b0064f4a1ee 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -42,6 +42,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module ((guix build utils) #:select (alist-replace delete-file-recursively)) @@ -1753,29 +1754,45 @@ raw USB commands.") (define-public west (package (name "west") - (version "0.13.1") + (version "1.5.0") (source (origin - (method url-fetch) - (uri (pypi-uri "west" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/zephyrproject-rtos/west") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1hw9qas8ry8prn24iqka8kw2nv7ndxr95mvwr5lww53w2sr7p807")))) + (base32 "0fa3bbw69khw8la4mi4q18d8brixywwj5yby7dh36hd40wxspzk3")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; XXX: This test tries to access the network. + #~(list "-k" "not test_init_with_clone_option_depth_one") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'configure-tests + (lambda _ + (setenv "TOXTEMPDIR" + (mkdtemp + (string-append (dirname (getcwd)) "/tmpXXXXXX")))))))) (propagated-inputs (list python-colorama python-packaging python-pykwalify python-pyyaml)) - (build-system python-build-system) + (native-inputs (list git-minimal python-pytest python-setuptools)) (home-page "https://github.com/zephyrproject-rtos/west") (synopsis "Zephyr RTOS Project meta-tool") - (description "West is the swiss-army knife command line tool of the Zephyr -project. Its built-in commands provide a multiple repository management -system with features inspired by Google’s Repo tool and Git submodules. West -simplifies configuration and is also pluggable: you can write your own west -\"extension commands\" which add additional features to west. Zephyr uses -this feature to provide conveniences for building applications, flashing and -debugging them, and more.") + (description + "West is the swiss-army knife command line tool of the Zephyr project. +Its built-in commands provide a multiple repository management system with +features inspired by Google’s Repo tool and Git submodules. West simplifies +configuration and is also pluggable: you can write your own west \"extension +commands\" which add additional features to west. Zephyr uses this feature to +provide conveniences for building applications, flashing and debugging them, +and more.") (license license:expat))) (define-public ebusd