guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: python2-bz2file: Inherit arguments from python-bzfile.


From: Marius Bakke
Subject: 02/02: gnu: python2-bz2file: Inherit arguments from python-bzfile.
Date: Sun, 21 Oct 2018 12:04:19 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit e381ae317c054a8ac52037c3f0df72ca3c96b91f
Author: Marius Bakke <address@hidden>
Date:   Fri Oct 19 21:29:51 2018 +0200

    gnu: python2-bz2file: Inherit arguments from python-bzfile.
    
    * gnu/packages/python.scm (python-bz2file)[properties]: Remove field.
    (python2-bz2file): Use PACKAGE-WITH-PYTHON2.
---
 gnu/packages/python.scm | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 63cf440..c298720 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8806,23 +8806,10 @@ LDFLAGS and parse the output to build extensions with 
setup.py.")
 files.  It contains a drop-in replacement for the I/O interface in the
 standard library's @code{bz2} module, including features from the latest
 development version of CPython that are not available in older releases.")
-    (license license:asl2.0)
-    (properties `((python2-variant . ,(delay python2-bz2file))))))
+    (license license:asl2.0)))
 
 (define-public python2-bz2file
-  (let ((base (package-with-python2
-               (strip-python2-variant python-bz2file))))
-    (package
-      (inherit base)
-      (arguments
-       `(#:python ,python-2
-         #:phases
-         (modify-phases %standard-phases
-           ;; 'python setup.py test' does not work as of 0.98.
-           ;; There is only the one test file, so we run it directly.
-           (replace 'check
-                    (lambda _ (zero? (system* "python"
-                                              "test_bz2file.py"))))))))))
+  (package-with-python2 python-bz2file))
 
 (define-public python-future
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]