diff mbox

Add python2-protobuf

Message ID 777b604dcc8bd75cc9f0695ae7f9a46e@d4n1.org
State New
Headers show

Commit Message

Daniel Pimentel July 3, 2016, 6:48 p.m. UTC
Hi Guix,

Add python2-protobuf

* gnu/packages/python.scm (python2-protobuf): New variables.

Thanks,

Comments

Leo Famulari July 3, 2016, 9:46 p.m. UTC | #1
On Sun, Jul 03, 2016 at 03:48:18PM -0300, Daniel Pimentel wrote:
> Hi Guix,
> 
> Add python2-protobuf
> 
> * gnu/packages/python.scm (python2-protobuf): New variables.

Thanks for this! Can you try building the python-3 version as well, and
then using package-with-python2 to make python2-protobuf?
diff mbox

Patch

From 6584dd0d96fcef9e93c8285b074a9cf41c3d2efc Mon Sep 17 00:00:00 2001
From: Daniel Pimentel <d4n1@d4n1.org>
Date: Sun, 3 Jul 2016 15:45:17 -0300
Subject: [PATCH 3/3] gnu: Add python2-protobuf * gnu/packages/python.scm
 (python2-protobuf): New variables.

---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 529da2c..35fa16b 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9342,3 +9342,30 @@  function PBKDF2.")
 Response (QR) images.  It is recommended that the pillow library be used to
 generate images, though the default Python imaging library can also be used.")
     (license bsd-3)))
+
+(define-public python2-protobuf
+  (package
+    (name "python2-protobuf")
+    (version "3.0.0b3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "protobuf" version))
+       (sha256
+        (base32
+         "098mnxzd3y67j44y3fdpfszphhljp88flfr4a90qfvvpy4ka7w5l"))))
+    (build-system python-build-system)
+    (inputs
+     `(("gcc" ,gcc)
+       ("zlib" ,zlib)
+       ("python2-six" ,python2-six)))
+    (native-inputs
+     `(("python2-setuptools" ,python2-setuptools)))
+    (arguments
+     `(#:python ,python-2))
+    (home-page "https://github.com/google/protobuf")
+    (synopsis "Protocol buffers is a data interchange format.")
+    (description
+     "Protocol buffers are a language-neutral, platform-neutral extensible 
+mechanism for serializing structured data.")
+    (license bsd-3)))
-- 
2.7.4