[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/09: gnu: python-pycparser: Use ‘modify-phases’ syntax.
From: |
Tobias Geerinckx-Rice |
Subject: |
02/09: gnu: python-pycparser: Use ‘modify-phases’ syntax. |
Date: |
Mon, 2 Jan 2017 08:34:29 +0000 (UTC) |
nckx pushed a commit to branch master
in repository guix.
commit 819939cb94c5aaad85984695d651c3c36d9dd6e3
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Mon Jan 2 08:25:38 2017 +0100
gnu: python-pycparser: Use ‘modify-phases’ syntax.
* gnu/packages/python.scm (python-pycparser)[arguments]: Use
‘modify-phases’.
---
gnu/packages/python.scm | 36 +++++++++++++++++-------------------
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 88f74a3..59400a3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -32,7 +32,7 @@
;;; Copyright © 2016 Alex Vong <address@hidden>
;;; Copyright © 2016 Arun Isaac <address@hidden>
;;; Copyright © 2016 Julien Lepiller <address@hidden>
-;;; Copyright © 2016 Tobias Geerinckx-Rice <address@hidden>
+;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2016 Thomas Danckaert <address@hidden>
;;;
;;; This file is part of GNU Guix.
@@ -4280,24 +4280,22 @@ a general image processing tool.")
`(("pkg-config" ,pkg-config)))
(arguments
`(#:phases
- (alist-replace
- 'check
- (lambda _
- (with-directory-excursion "tests"
- (zero? (system* "python" "all_tests.py"))))
- (alist-cons-after
- 'install 'install-doc
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
- (doc (string-append data "/doc/" ,name "-" ,version))
- (examples (string-append doc "/examples")))
- (mkdir-p examples)
- (for-each (lambda (file)
- (copy-file (string-append "." file)
- (string-append doc file)))
- '("/README.rst" "/CHANGES" "/LICENSE"))
- (copy-recursively "examples" examples)))
- %standard-phases))))
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (with-directory-excursion "tests"
+ (zero? (system* "python" "all_tests.py")))))
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
+ (doc (string-append data "/doc/" ,name "-" ,version))
+ (examples (string-append doc "/examples")))
+ (mkdir-p examples)
+ (for-each (lambda (file)
+ (copy-file (string-append "." file)
+ (string-append doc file)))
+ '("/README.rst" "/CHANGES" "/LICENSE"))
+ (copy-recursively "examples" examples)))))))
(home-page "https://github.com/eliben/pycparser")
(synopsis "C parser in Python")
(description
- branch master updated (0d48ff8 -> 1b5ea09), Tobias Geerinckx-Rice, 2017/01/02
- 01/09: gnu: python-pycparser: Update to 2.17., Tobias Geerinckx-Rice, 2017/01/02
- 06/09: gnu: awscli: Update to 1.11.35., Tobias Geerinckx-Rice, 2017/01/02
- 04/09: gnu: python-backports-abc: Update to 0.5., Tobias Geerinckx-Rice, 2017/01/02
- 07/09: gnu: python-mako: Update to 1.0.6., Tobias Geerinckx-Rice, 2017/01/02
- 02/09: gnu: python-pycparser: Use ‘modify-phases’ syntax.,
Tobias Geerinckx-Rice <=
- 08/09: gnu: python-greenlet: Update to 0.4.11., Tobias Geerinckx-Rice, 2017/01/02
- 03/09: gnu: python-decorator: Update to 4.0.10., Tobias Geerinckx-Rice, 2017/01/02
- 09/09: gnu: python-s3transfer: Update to 0.1.10., Tobias Geerinckx-Rice, 2017/01/02
- 05/09: gnu: python-werkzeug: Update to 0.11.15., Tobias Geerinckx-Rice, 2017/01/02