guix_mirror_bot pushed a commit to branch next-master
in repository guix.
commit 54f406e3d453bf958e10cd1bdf989ae07ecca08f
Author: Nicolas Graves <[email protected]>
AuthorDate: Mon Jan 5 18:20:30 2026 +0100
gnu: qspectrumanalyzer: Switch to pyproject.
* gnu/packages/radio.scm (qspectrumanalyzer):
[build-system]: Switch to pyproject-build-system.
[arguments]: Relocate them, improve style.
<#:phases>: Relocate phase 'wrap-path.
[native-inputs]: Add python-setuptools.
Change-Id: I4b236b72ed0d680a5c03fa3d29200830f31833d6
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/radio.scm | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm
index c1b1d96dbc..053617c584 100644
--- a/gnu/packages/radio.scm
+++ b/gnu/packages/radio.scm
@@ -813,7 +813,20 @@ devices that are supported by the SoapySDR library.")
(uri (pypi-uri "QSpectrumAnalyzer" version))
(sha256
(base32 "1bhl8zp4z7v3595ailyivx9vb7y5si6kr22aylphb5pf60jxqhn0"))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:tests? #f ; No tests
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'wrap 'wrap-path
+ ;; Add the location of the default backend to PATH.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (wrap-program (string-append #$output "/bin/qspectrumanalyzer")
+ `("PATH" ":" prefix
+ (,(dirname (search-input-file inputs
+ "bin/soapy_power"))))))))))
+ (native-inputs (list python-setuptools))
(inputs
(list bash-minimal
python-pyqt
@@ -822,18 +835,6 @@ devices that are supported by the SoapySDR library.")
python-simplespectral
python-simplesoapy
soapy-power))
- (arguments
- (list #:tests? #f ; No tests
- #:phases
- #~(modify-phases %standard-phases
- (add-after 'install 'wrap-path
- ;; Add the location of the default backend to PATH.
- (lambda* (#:key inputs #:allow-other-keys)
- (wrap-program (string-append #$output
- "/bin/qspectrumanalyzer")
- `("PATH" ":" prefix
- (,(string-append (assoc-ref inputs "soapy-power")
- "/bin")))))))))
(home-page "https://github.com/xmikos/qspectrumanalyzer")
(synopsis "Spectrum analyzer for multiple SDR platforms")
(description