3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: grip: Update to 4.6.1.

* gnu/packages/python-web.scm (grip): Update to 4.6.1.
(arguments): Use a gexp.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Luis Henrique Gomes Higino 2022-06-18 17:11:27 -03:00 committed by Christopher Baines
parent 09aeabb9d3
commit 9a2a77b6ad
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -52,6 +52,7 @@
;;; Copyright © 2022 Felix Gruber <felgru@posteo.net> ;;; Copyright © 2022 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io> ;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;; Copyright © 2022 Antero Mejr <antero@mailbox.org> ;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
;;; Copyright © 2022 Luis Henrique Gomes Higino <luishenriquegh2701@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -5179,50 +5180,46 @@ interfaces, inferring which argument is the path, and which is the address.")
(license license:expat))) (license license:expat)))
(define-public grip (define-public grip
;; No release by upstream for quite some time, some bugs fixed since. See: (package
;; https://github.com/joeyespo/grip/issues/304 (name "grip")
(let ((commit "27a4d6d87ea1d0ea7f7f120de55baabee3de73e3")) (version "4.6.1")
(package (source (origin
(name "grip") (method git-fetch)
(version (git-version "4.5.2" "1" commit)) (uri (git-reference
(source (url "https://github.com/joeyespo/grip")
(origin (commit (string-append "v" version))))
(method git-fetch) (file-name (git-file-name name version))
(uri (git-reference (sha256
(url "https://github.com/joeyespo/grip") (base32
(commit commit))) "0vhimd99zw7s1fihwr6yfij6ywahv9gdrfcf5qljvzh75mvzcwh8"))))
(file-name (git-file-name name version)) (build-system python-build-system)
(sha256 (propagated-inputs (list python-docopt
(base32 python-flask
"0kx5hgb3q19i4l18a4vqdq9af390xgpk88lp2ay75qi96k0dc68w")))) python-markdown
(build-system python-build-system) python-path-and-address
(propagated-inputs python-pygments
(list python-docopt python-requests))
python-flask (native-inputs (list python-pytest python-responses))
python-markdown (arguments
python-path-and-address (list #:phases
python-pygments #~(modify-phases %standard-phases
python-requests)) (replace 'check
(native-inputs (lambda* (#:key inputs outputs tests? #:allow-other-keys)
(list python-pytest python-responses)) (when tests?
(arguments (add-installed-pythonpath inputs outputs)
`(#:phases (setenv "PATH"
(modify-phases %standard-phases (string-append (getenv "PATH") ":"
(replace 'check #$output "/bin"))
(lambda* (#:key inputs outputs #:allow-other-keys) (invoke "py.test" "-m" "not assumption")))))))
(add-installed-pythonpath inputs outputs) (home-page "https://github.com/joeyespo/grip")
(setenv "PATH" (string-append (synopsis "Preview Markdown files using the GitHub API")
(getenv "PATH") ":" (description
(assoc-ref %outputs "out") "/bin")) "Grip is a command-line server application written in Python
(invoke "py.test" "-m" "not assumption"))))))
(home-page "https://github.com/joeyespo/grip")
(synopsis "Preview Markdown files using the GitHub API")
(description "Grip is a command-line server application written in Python
that uses the GitHub Markdown API to render a local Markdown file. The styles that uses the GitHub Markdown API to render a local Markdown file. The styles
and rendering come directly from GitHub, so you'll know exactly how it will and rendering come directly from GitHub, so you'll know exactly how it will
appear. Changes you make to the file will be instantly reflected in the browser appear. Changes you make to the file will be instantly reflected in the browser
without requiring a page refresh.") without requiring a page refresh.")
(license license:expat)))) (license license:expat)))
(define-public python-port-for (define-public python-port-for
(package (package