Archived
1
0
Fork 0

gnu: asciinema: Update to 2.0.2.

* gnu/packages/terminals.scm (asciinema): Update to 2.0.2.
[source]: Fetch source from GitHub because PyPI excludes the tests.
[arguments]: Update patch-exec-paths phase, replace check phase.
[native-inputs]: Drop requests, add nose.
This commit is contained in:
Alex Griffin 2019-11-01 21:31:09 -05:00
parent 44d1cce557
commit ab1c063ab0
No known key found for this signature in database
GPG key ID: 6F5120A022FBB2D5

View file

@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Mckinley Olsen <mck.olsen@gmail.com> ;;; Copyright © 2016 Mckinley Olsen <mck.olsen@gmail.com>
;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com> ;;; Copyright © 2016, 2017, 2019 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2016 David Craven <david@craven.ch> ;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016, 2017 José Miguel Sánchez García <jmi2k@openmailbox.org> ;;; Copyright © 2016, 2017 José Miguel Sánchez García <jmi2k@openmailbox.org>
@ -171,14 +171,17 @@ insert mode and command mode where keybindings have different functions.")
(define-public asciinema (define-public asciinema
(package (package
(name "asciinema") (name "asciinema")
(version "1.4.0") (version "2.0.2")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "asciinema" version)) (uri (git-reference
(url "https://github.com/asciinema/asciinema")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1jrf8c8711gkdilmvyv3d37kp8xfvdc5cqighw5k92a6g9z4acgv")))) "1a2pysxnp6icyd08mgf66xr6f6j0irnfxdpf3fmzcz31ix7l9kc4"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -186,14 +189,16 @@ insert mode and command mode where keybindings have different functions.")
(add-before 'build 'patch-exec-paths (add-before 'build 'patch-exec-paths
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((ncurses (assoc-ref inputs "ncurses"))) (let ((ncurses (assoc-ref inputs "ncurses")))
(substitute* "asciinema/recorder.py" (substitute* "asciinema/term.py"
(("'tput'") (("'tput'")
(string-append "'" ncurses "/bin/tput'")))) (string-append "'" ncurses "/bin/tput'"))))
#t))))) #t))
(replace 'check
(lambda _ (invoke "nosetests" "-v"))))))
(inputs `(("ncurses" ,ncurses))) (inputs `(("ncurses" ,ncurses)))
(native-inputs (native-inputs
;; For tests. ;; For tests.
`(("python-requests" ,python-requests))) `(("python-nose" ,python-nose)))
(home-page "https://asciinema.org") (home-page "https://asciinema.org")
(synopsis "Terminal session recorder") (synopsis "Terminal session recorder")
(description (description