guix-commits
[Top][All Lists]
Advanced

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

02/06: gnu: python-msgpack: Use 'python2-variant'.


From: Leo Famulari
Subject: 02/06: gnu: python-msgpack: Use 'python2-variant'.
Date: Thu, 24 Mar 2016 21:18:02 +0000

lfam pushed a commit to branch master
in repository guix.

commit bd74be7b8c6f3df34d8556f55ab9ef7411c07933
Author: Leo Famulari <address@hidden>
Date:   Mon Mar 14 19:34:22 2016 -0400

    gnu: python-msgpack: Use 'python2-variant'.
    
    * gnu/packages/python.scm (python-msgpack)[native-inputs]: Remove field.
    [properties]: New field.
    (python2-msgpack): Use 'strip-python2-variant'.
    [native-inputs]: Add python2-setuptools.
---
 gnu/packages/python.scm |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 24eca00..0ac7c06 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5425,14 +5425,19 @@ should be stored on various operating systems.")
                (base32
                 "0syd7bs83qs9qmxw540jbgsildbqk4yb57fmrlns1021llli402y"))))
     (build-system python-build-system)
-    (native-inputs
-     `(("python-setuptools" ,python-setuptools)))
     (synopsis "MessagePack (de)serializer")
     (description "MessagePack is a fast, compact binary serialization format,
 suitable for similar data to JSON.  This package provides CPython bindings for
 reading and writing MessagePack data.")
     (home-page "https://pypi.python.org/pypi/msgpack-python/";)
-    (license asl2.0)))
+    (license asl2.0)
+    (properties `((python2-variant . ,(delay python2-msgpack))))))
+
+(define-public python2-msgpack
+  (package (inherit (package-with-python2
+                     (strip-python2-variant python-msgpack)))
+    (native-inputs
+     `(("python2-setuptools" ,python2-setuptools)))))
 
 (define-public python2-msgpack
   (package-with-python2 python-msgpack))



reply via email to

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