summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMorgan Smith <Morgan.J.Smith@outlook.com>2022-12-23 18:08:32 -0500
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-02 16:12:17 +0100
commit7aaf1afbd42f3469ca6a3bd855f3217cfb6a1b0a (patch)
tree1d9170e91f4fe50354d2c1a644719debad5dfcce /gnu
parent2a1dc0d07a60513b68648dc31c16bbb256bc4010 (diff)
gnu: Add printrun.
* gnu/packages/printers.scm (printrun): New variable. Change-Id: Ibf04b2cf49dffd116a5730c9329a2ee1bfb893c0 Reviewed-by: Andreas Enge <andreas@enge.fr> Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/printers.scm82
1 files changed, 77 insertions, 5 deletions
diff --git a/gnu/packages/printers.scm b/gnu/packages/printers.scm
index 6c705902346..0b5169ced35 100644
--- a/gnu/packages/printers.scm
+++ b/gnu/packages/printers.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2022 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2024 Herman Rimm <herman@rimm.ee>
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
@@ -20,21 +21,29 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages printers)
- #:use-module (guix gexp)
- #:use-module (guix packages)
- #:use-module (guix git-download)
+ #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system go)
- #:use-module ((guix licenses) #:prefix license:)
+ #:use-module (guix build-system pyproject)
+ #:use-module (guix gexp)
+ #:use-module (guix git-download)
+ #:use-module (guix packages)
#:use-module (gnu packages avahi)
#:use-module (gnu packages gd)
#:use-module (gnu packages gettext)
#:use-module (gnu packages golang-xyz)
+ #:use-module (gnu packages libffi)
#:use-module (gnu packages libusb)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages python-build)
+ #:use-module (gnu packages python-graphics)
+ #:use-module (gnu packages python-xyz)
+ #:use-module (gnu packages qt)
#:use-module (gnu packages version-control)
- #:use-module (gnu packages qt))
+ #:use-module (gnu packages wxwidgets)
+ #:use-module (gnu packages xorg)
+ #:use-module (gnu packages xml))
;; This is a module for packages related to printer-like devices, but not
;; related to CUPS.
@@ -173,3 +182,66 @@ to work as the printer is accessed directly via libusb.")
with Graphtec and Sihouette plotting cutters using an SVG file as its input.")
(home-page "http://robocut.org")
(license license:gpl3+)))
+
+(define-public printrun
+ (package
+ (name "printrun")
+ (version "2.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kliment/Printrun")
+ (commit (string-append "printrun-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0imnpyc4w3xzm353fjmwig4a2yfm2nhagl1bib4871m014c4vli0"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'unittest
+ #:test-flags #~(list "discover" "tests")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-files
+ (lambda _
+ (delete-file "printrun/power/osx.py")
+ (delete-file "printrun/packer.py")
+ (substitute* "printrun/utils.py"
+ (("shared_pronterface_images_dir = .*")
+ (string-append
+ "shared_pronterface_images_dir = \""
+ #$output "/share/pronterface/images\"\n"))
+ (("shared_pixmaps_dir = .*")
+ (string-append "shared_pixmaps_dir = \""
+ #$output "/share/pixmaps\"\n"))
+ (("shared_pronterface_dir = .*")
+ (string-append "shared_pixmaps_dir = \""
+ #$output
+ "/share/pronterface\"\n")))))
+ (add-before 'check 'setup-display
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (system "Xvfb :1 &")
+ (setenv "DISPLAY" ":1")))))))
+ (native-inputs
+ (list python-cython
+ python-setuptools
+ xorg-server-for-tests))
+ (inputs
+ (list python-dbus-python
+ python-lxml
+ python-numpy
+ python-pillow
+ python-platformdirs
+ python-psutil
+ python-puremagic
+ python-pyglet-1
+ python-pyserial
+ python-wxpython))
+ (home-page "https://github.com/kliment/Printrun/")
+ (synopsis "Pronterface, Pronsole, and Printcore 3D printing host software")
+ (description
+ "Printrun consists of printcore, pronsole and pronterface, and a small
+collection of helpful scripts.")
+ (license license:gpl3+)))