gnu: stcgal: Switch to pyproject.

* gnu/packages/embedded.scm (stcgal):
[source]: Improve style.
[build-system]: Switch to pyproject-build-system.
[native-inputs]: Add python-pytest, python-setuptools.

Change-Id: I586a3c56b23572d2552e3779afda4447c708a63b
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-12-28 21:17:13 +01:00 committed by Sharlatan Hellseher
parent 4a98c20de1
commit 6681b4894d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1757,24 +1757,20 @@ these identified regions.
(package (package
(name "stcgal") (name "stcgal")
(version "1.10") (version "1.10")
(source (origin (source
;; The "doc" subdirectory referred to by stcgal's setup.py is (origin
;; missing from the source distribution on PyPI so we fetch (method git-fetch)
;; directly from the project's git repository instead. (uri (git-reference
(method git-fetch) (url "https://github.com/grigorig/stcgal")
(uri (git-reference (commit (string-append "v" version))))
(url "https://github.com/grigorig/stcgal") (file-name (git-file-name name version))
(commit (string-append "v" version)))) (sha256
(file-name (git-file-name name version)) (base32 "04hsj49sw5mb6swhd3sdsm7dzwp1frnzpmq70wgsn5vmjavb1ka8"))))
(sha256 (build-system pyproject-build-system)
(base32 (propagated-inputs (list python-pyserial python-pyusb python-tqdm))
"04hsj49sw5mb6swhd3sdsm7dzwp1frnzpmq70wgsn5vmjavb1ka8"))))
(build-system python-build-system)
(propagated-inputs
(list python-pyserial python-pyusb python-tqdm))
(native-inputs (native-inputs
;; For tests. ;; For tests.
(list python-pyyaml)) (list python-pytest python-pyyaml python-setuptools))
(home-page "https://github.com/grigorig/stcgal") (home-page "https://github.com/grigorig/stcgal")
(synopsis "Programmer for STC 8051-compatible microcontrollers") (synopsis "Programmer for STC 8051-compatible microcontrollers")
(description "stcgal is a command-line flash-programming tool for STC (description "stcgal is a command-line flash-programming tool for STC