gnu: Update python-pastel to 0.1.1.

* gnu/packages/graphics.scm (python-pastel): Update to 0.1.1.
[arguments]: Add custom 'check phase.
[description]: Simplify description.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
tlecarrour@easter-eggs.com 2019-10-04 09:48:40 +02:00 committed by Efraim Flashner
parent 6792908d6d
commit 1e8826bdd3
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 8 additions and 10 deletions

View File

@ -17,6 +17,7 @@
;;; Copyright © 2019 John Soo <jsoo1@asu.edu> ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz> ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2019 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -913,28 +914,25 @@ rendering SVG graphics.")
(define-public python-pastel (define-public python-pastel
(package (package
(name "python-pastel") (name "python-pastel")
(version "0.1.0") (version "0.1.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "pastel" version)) (uri (pypi-uri "pastel" version))
(sha256 (sha256
(base32 (base32
"1hqbm934n5yjwn31aq8h7shrr0rcy326wrqfc856vyn0gr0sy21i")))) "1qxcrcl8pzh66l8s6hym153mijdhwna0afcsmgca0bj4n80ijfxz"))))
(build-system python-build-system) (build-system python-build-system)
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "pytest" "pastel" "tests/"))))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest))) `(("python-pytest" ,python-pytest)))
(home-page "https://github.com/sdispater/pastel") (home-page "https://github.com/sdispater/pastel")
(synopsis "Library to colorize strings in your terminal") (synopsis "Library to colorize strings in your terminal")
(description "Pastel is a simple library to help you colorize strings in (description "Pastel is a simple library to help you colorize strings in
your terminal. It comes bundled with predefined styles: your terminal.")
@enumerate
@item info: green
@item comment: yellow
@item question: black on cyan
@item error: white on red
@end enumerate
")
(license license:expat))) (license license:expat)))
(define-public python2-pastel (define-public python2-pastel