From db96f3b5af34171467969c38e4534dd40ad20a94 Mon Sep 17 00:00:00 2001 From: Andrew Wong Date: Fri, 30 May 2025 03:42:50 -0400 Subject: [PATCH] gnu: Add typstwriter. * gnu/packages/text-editors.scm (typstwriter): New variable. Change-Id: I3dad423478d5b3fb81b092a6ab4a554ad0ed0b1b Signed-off-by: Hilton Chain Modified-by: Hilton Chain --- gnu/packages/text-editors.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index b25ecfca046ae6e4fbf61bc52fb9c650d64126f5..52c6fc741204950d862a3c89764be9f0cbd9288c 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -39,6 +39,7 @@ ;;; Copyright © 2025 Sharlatan Hellseher ;;; Copyright © 2025 Ashish SHUKLA ;;; Copyright © 2025 Marc Coquand +;;; Copyright © 2025 Andrew Wong ;;; ;;; 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) @@ -114,10 +116,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) @@ -1358,6 +1362,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")