1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 13:10:33 +02:00

gnu: aacircuit: Move to electronics.

* gnu/packages/engineering.scm (aacircuit): Move from here ...
* gnu/packages/electronics.scm: ... to here.

Change-Id: If632d7ba4917a8a5d01f45943daa9cdd86c2a9bb
Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
This commit is contained in:
Cayetano Santos
2025-09-23 11:43:52 +02:00
committed by Gabriel Wicki
parent 4dc3ca546c
commit ee16bf81cd
2 changed files with 81 additions and 79 deletions

View File

@@ -186,85 +186,6 @@
#:use-module (gnu packages xorg)
#:use-module ((srfi srfi-1) #:hide (zip)))
(define-public aacircuit
;; No release in PyPI or version tag on Git, use the latest commit.
(let ((commit "18635c846754b6219da1a2ceb8977714f70004d0")
(revision "0"))
(package
(name "aacircuit")
(version (git-version "0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/Blokkendoos/AACircuit")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "07agb7fbpbq74zm27j9b00imr46q6kpwhxzmmffw2s9scv80c1km"))))
(build-system pyproject-build-system)
(arguments
(list
#:imported-modules `((guix build glib-or-gtk-build-system)
,@%pyproject-build-system-modules)
#:modules '(((guix build glib-or-gtk-build-system)
#:prefix glib-or-gtk:)
(guix build pyproject-build-system)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'generate-gdk-pixbuf-loaders-cache-file
(assoc-ref glib-or-gtk:%standard-phases
'generate-gdk-pixbuf-loaders-cache-file))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
;; Delete develompent test file.
(delete-file "tests/test_flake.py")
;; Exclude tests intended for visual review.
(setenv "NOSE_EXCLUDE"
(string-join '("test_export_pdf"
"test_import_aacircuit_export_pdf")
","))
(setenv "HOME" "/tmp")
(invoke "xvfb-run" "./testrunner.sh"))))
(add-after 'wrap 'glib-or-gtk-wrap
(assoc-ref glib-or-gtk:%standard-phases
'glib-or-gtk-wrap))
(add-after 'glib-or-gtk-wrap 'wrap-aacircuit
(lambda* (#:key outputs #:allow-other-keys)
(wrap-program (string-append (assoc-ref outputs "out")
"/bin/aacircuit")
`("GDK_PIXBUF_MODULE_FILE" =
(,(getenv "GDK_PIXBUF_MODULE_FILE")))
`("GI_TYPELIB_PATH" ":" prefix
(,(getenv "GI_TYPELIB_PATH")))))))))
(native-inputs
;; XXX: Test runner may be migrated to Pytest
;; <https://docs.pytest.org/en/7.1.x/how-to/nose.html> after report to
;; the upstream to modify them, use deprecated Nose test runner for
;; now.
(list python-nose
python-setuptools
python-wheel
xvfb-run))
(inputs
(list bash-minimal
gtk+
python-bresenham
python-platformdirs
python-pycairo
python-pyclip
python-pygobject
python-pypubsub))
(home-page "https://github.com/Blokkendoos/AACircuit")
(synopsis "Draw electronic circuits with ASCII characters")
(description
"This is a pythonized, kind of reverse engineered version of original
AACircuit written by Andreas Weber in Borland Delphi. The idea and GUI layout
are also taken from the original.")
(license license:gpl3+))))
(define-public cutecom
(package
(name "cutecom")