summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Wong <wongandj@icloud.com>2025-05-30 03:42:50 -0400
committerHilton Chain <hako@ultrarare.space>2025-07-29 21:32:23 +0800
commit39b54cf3388d276758f08ba338e85b0ae1a3d9bb (patch)
treef10298e39bd9d4e34b190c5e4cde1dde64bda646
parent0411cfaead078966157a11f6cad322acabe2032f (diff)
gnu: Add typstwriter.
* gnu/packages/text-editors.scm (typstwriter): New variable. Change-Id: I3dad423478d5b3fb81b092a6ab4a554ad0ed0b1b Signed-off-by: Hilton Chain <hako@ultrarare.space> Modified-by: Hilton Chain <hako@ultrarare.space>
-rw-r--r--gnu/packages/text-editors.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index eecb356c9f..bf0e33fbd0 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -39,6 +39,7 @@
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2025 Ashish SHUKLA <ashish.is@lostca.se>
;;; Copyright © 2025 Marc Coquand <marc@coquand.email>
+;;; Copyright © 2025 Andrew Wong <wongandj@icloud.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -69,6 +70,7 @@
#:use-module (guix build-system glib-or-gtk)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system qt)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
@@ -112,10 +114,12 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages regex)
+ #:use-module (gnu packages rust-apps)
#:use-module (gnu packages sdl)
#:use-module (gnu packages slang)
#:use-module (gnu packages sqlite)
@@ -1354,6 +1358,34 @@ The basic features of Text Pieces are:
@end itemize")
(license license:gpl3)))
+(define-public typstwriter
+ (package
+ (name "typstwriter")
+ (version "0.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "typstwriter" version))
+ (sha256
+ (base32 "0whx593xi5pv9wqzzd6xa97pln5b0j629s3qnfs80v06p2r5ghs6"))))
+ (build-system pyproject-build-system)
+ (arguments (list #:tests? #f))
+ (native-inputs
+ ;; TODO: Add the following dependencies and enable tests once this package
+ ;; is merged into master.
+ ;; python-fpdf python-pytest python-pytest-qt
+ (list python-flit-core))
+ (inputs
+ (list python-platformdirs python-pygments python-pyside-6 python-qtpy))
+ (propagated-inputs (list typst))
+ (home-page "https://github.com/Bzero/typstwriter")
+ (synopsis "Integrated editor for Typst typesetting system")
+ (description
+ "Typstwriter is an integrated editor for the Typst typesetting system,
+including syntax highlighting and compiler output as well as file-system and
+document views presented in a clean, friendly Qt graphical interface.")
+ (license license:expat)))
+
(define-public scintilla
(package
(name "scintilla")