guix-commits
[Top][All Lists]
Advanced

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

03/04: gnu: python-lockfile Use 'python2-variant'.


From: Ben Woodcroft
Subject: 03/04: gnu: python-lockfile Use 'python2-variant'.
Date: Sun, 03 Apr 2016 06:08:20 +0000

benwoodcroft pushed a commit to branch master
in repository guix.

commit 1804527ab0ba107ee891f2c82e5346cb7044f8a3
Author: Ben Woodcroft <address@hidden>
Date:   Sun Apr 3 15:55:44 2016 +1000

    gnu: python-lockfile Use 'python2-variant'.
    
    * gnu/packages/python.scm (python-lockfile): Use 'python2-variant'.
    [properties]: New field.
    (python2-lockfile): Use 'strip-python2-variant'.
---
 gnu/packages/python.scm |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d79cb13..2f2ef2f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -728,10 +728,13 @@ concepts.")
     (description
      "The lockfile package exports a LockFile class which provides a simple
 API for locking files.")
-    (license license:expat)))
+    (license license:expat)
+    (properties `((python2-variant . ,(delay python2-lockfile))))))
 
 (define-public python2-lockfile
-  (package-with-python2 python-lockfile))
+  (let ((base (package-with-python2 (strip-python2-variant python-lockfile))))
+    (package
+      (inherit base))))
 
 (define-public python-mock
   (package



reply via email to

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