1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-22 09:05:54 +02:00

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 <sharlatanus@gmail.com>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
This commit is contained in:
Nicolas Graves
2026-01-05 18:20:30 +01:00
committed by Rutherther
parent 4ee5d75ff4
commit 8a7939711c
+14 -13
View File
@@ -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