;;; 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 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; 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 (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 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+))) ournier <zimon.toutoune@gmail.com> Maxim Cournoyer 2023-05-18etc: gitconfig: Do not enforced signed commits....This change was more invasive than initially thought, and cannot be disabled easily, as raised by a few people. Let's revert it for now. At least the pre-push hook should be deployed automatically and catch any unsigned commits attempted to be pushed to Savannah. * etc/git/gitconfig [commit]: Remove section. Maxim Cournoyer 2023-05-01Makefile.am: Auto-configure Git on 'make'....This means we do not need to worry anymore about manually syncing the pre-push git hook or the Guix-provided git configuration. * etc/git/gitconfig: Augment configuration template with useful options to allow for auto-configuration. * Makefile.am (.git/hooks/pre-push, .git/config): New targets. (nodist_noinst_DATA): New primary variable holding the above targets. Maxim Cournoyer 2021-10-14Add git configuration templates to improve diff hunk header detection....This is a follow-up to commit 9fc8ae4171e5da4939a64fc6d684c8b9d85bbe84, which missed two hunks from <https://issues.guix.gnu.org/50363>. Reported by hackeryarn on #guix. * .gitattributes, etc/git/gitconfig: New files. Signed-off-by: Marius Bakke <marius@gnu.org> Sarah Morgensen 2020-12-14maint: Only run `make authenticate` when pushing commits....* etc/git/pre-push: Exit early when deleting a branch. Leo Famulari 2020-06-01maint: Adjust comment in 'pre-push' hook....* etc/git/pre-push: Adjust comment. Ludovic Courtès 2020-05-29maint: Git pre-push hook runs "make authenticate check-channel-news"....* etc/git/pre-push: Change to run "make authenticate check-channel-news". Ludovic Courtès