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

gnu: Remove presentty.

* gnu/packages/presentation.scm (presentty): Delete variable.

Change-Id: Ieadaddbdd9ad8a4123a0e13f527296366824eb2f
This commit is contained in:
Andreas Enge
2025-09-19 20:52:30 +02:00
parent 1c73ab126d
commit c3d4d79f52

View File

@@ -28,71 +28,3 @@
#:use-module (gnu packages image)
#:use-module (gnu packages python)
#:use-module (gnu packages python-xyz))
(define-public presentty
(package
(name "presentty")
(version "0.2.1")
(source
(origin
(method url-fetch)
(uri (pypi-uri "presentty" version))
(sha256
(base32
"1qpy992hyg1amjl0acic3agj20spcpv5m0ncg1283mmxs8cs3xy9"))
(patches
(list
(origin
(method url-fetch)
(uri "https://sources.debian.org/data/main/p/presentty/0.2.1-1/debian/patches/presentty-python3.patch")
(sha256
(base32
"03d3ylh1z99g4dqj7aka60spagnwss9mbacd7jbpk1gazflnssz1")))))))
(build-system python-build-system)
(arguments
`(#:tests? #f ; Test suite hasn't withstood the test of time.
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'loosen-requirements
(lambda _
;; Remove version pinning.
(substitute* "requirements.txt"
(("pbr>=.*") "pbr"))))
(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")))
(for-each
(lambda (program)
(wrap-program (string-append bin program)
`("PATH" ":" prefix (,(dirname (which "cowsay"))
,(dirname (which "figlet"))
,(dirname (which "jp2a"))))
`("GUIX_PYTHONPATH" prefix
,(cons (string-append out "/lib/python"
(python-version python)
"/site-packages")
(search-path-as-string->list
(or (getenv "GUIX_PYTHONPATH") ""))))))
'("presentty" "presentty-console")))))
;; XXX: console import test fails to find palette.py from the lib?
(delete 'sanity-check))))
(inputs
(list bash-minimal
cowsay
figlet
jp2a
python-docutils
python-pillow-2.9
python-six
python-urwid))
(native-inputs
(list python-pbr python-pygments))
(home-page "http://git.inaugust.com/cgit/presentty/")
(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+)))