You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.7 KiB

;;; Copyright © 2020 Efraim Flashner <>
;;; This file is part of GNU Guix.
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; GNU General Public License for more details.
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <>.
(define-module (gnu packages presentation)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (guix build-system python)
#:use-module (gnu packages figlet)
#:use-module (gnu packages games)
#:use-module (gnu packages image)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz))
(define-public presentty
(name "presentty")
(version "0.2.1")
(method url-fetch)
(uri (pypi-uri "presentty" version))
(method url-fetch)
(uri "")
(build-system python-build-system)
`(#:tests? #f ; Test suite hasn't withstood the test of time.
(modify-phases %standard-phases
(replace 'wrap
(lambda* (#:key python inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/"))
(python (assoc-ref inputs "python")))
(lambda (program)
(wrap-program (string-append bin program)
`("PATH" ":" prefix (,(dirname (which "cowsay"))
,(dirname (which "figlet"))
,(dirname (which "jp2a"))))
`("PYTHONPATH" prefix
,(cons (string-append out "/lib/python"
(python-version python)
(or (getenv "PYTHONPATH") ""))))))
'("presentty" "presentty-console")))
`(("cowsay" ,cowsay)
("figlet" ,figlet)
("jp2a" ,jp2a)
("python-docutils" ,python-docutils)
("python-pillow" ,python-pillow-2.9)
("python-six" ,python-six)
("python-urwid" ,python-urwid)))
`(("python-pbr" ,python-pbr)
("python-pygments" ,python-pygments)))
(home-page "")
(synopsis "Console-based presentation system")
(description "Presentty is a console-based presentation program where slides
are authored in reStructuredText. Its features include, but are not limited to:
Cross-fade animations, progressive list display, panning transitions, syntax
highlighting, Cowsay and figlet integration, ANSI art, JPEG display.")
(license license:gpl3+)))