From 6681b4894d035c6ca499ea738f62536d6cdc7bc8 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 28 Dec 2025 21:17:13 +0100 Subject: [PATCH] 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 --- gnu/packages/embedded.scm | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/gnu/packages/embedded.scm b/gnu/packages/embedded.scm index f89ff26a260673967910fab79a267fbad2ae697a..1830244896f1bed07ece4b5ac5db94bb7269485c 100644 --- a/gnu/packages/embedded.scm +++ b/gnu/packages/embedded.scm @@ -1757,24 +1757,20 @@ these identified regions. (package (name "stcgal") (version "1.10") - (source (origin - ;; The "doc" subdirectory referred to by stcgal's setup.py is - ;; missing from the source distribution on PyPI so we fetch - ;; directly from the project's git repository instead. - (method git-fetch) - (uri (git-reference - (url "https://github.com/grigorig/stcgal") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "04hsj49sw5mb6swhd3sdsm7dzwp1frnzpmq70wgsn5vmjavb1ka8")))) - (build-system python-build-system) - (propagated-inputs - (list python-pyserial python-pyusb python-tqdm)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/grigorig/stcgal") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04hsj49sw5mb6swhd3sdsm7dzwp1frnzpmq70wgsn5vmjavb1ka8")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-pyserial python-pyusb python-tqdm)) (native-inputs ;; For tests. - (list python-pyyaml)) + (list python-pytest python-pyyaml python-setuptools)) (home-page "https://github.com/grigorig/stcgal") (synopsis "Programmer for STC 8051-compatible microcontrollers") (description "stcgal is a command-line flash-programming tool for STC