diff mbox

gnu: Add python2-jsonrpclib

Message ID aad4c42c257eda72c5326c620a522e12@d4n1.org
State New
Headers show

Commit Message

Daniel Pimentel June 10, 2016, 12:14 a.m. UTC
Hi guix,

Add python2-jsonrpclib package for Guix in attach.

Thanks,

Comments

Ben Woodcroft June 10, 2016, 5:50 a.m. UTC | #1
On 10/06/16 10:14, Daniel Pimentel wrote:
> Hi guix,
>
> Add python2-jsonrpclib package for Guix in attach.
>
> Thanks,

Thank you.

I had a brief look over it. Can you add a comment as to why the tests 
were not run please?

I also note that this is a python2 library according to the package 
name, but it appears to build with the default python (3). Does it work 
on python 2 and 3?

Thanks,
ben
diff mbox

Patch

From 5e96d11f9569c111a9c07fa82432d5899a2e7bdc Mon Sep 17 00:00:00 2001
From: Daniel Pimentel <d4n1@member.fsf.org>
Date: Thu, 9 Jun 2016 21:08:23 -0300
Subject: [PATCH] gnu: Add python-jsonrpclib

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dfbf2cc..0ee6ade 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -20,6 +20,7 @@ 
 ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
+;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -9009,3 +9010,28 @@  focus on event-based network programming and multiprotocol integration.")
 
 (define-public python2-twisted
   (package-with-python2 python-twisted))
+
+(define-public python2-jsonrpclib
+  (package
+    (name "python2-jsonrpclib")
+    (version "0.1.7")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://pypi.python.org/packages/source/j/jsonrpclib/jsonrpclib-"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "02vgirw2bcgvpcxhv5hf3yvvb4h5wzd1lpjx8na5psdmaffj6l3z"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (arguments `(#:tests? #f))
+    (home-page "https://github.com/joshmarshall/jsonrpclib/")
+    (synopsis "Implementation of JSON-RPC specification for Python")
+    (description
+     "This library is an implementation of the JSON-RPC specification. 
+It supports both the original 1.0 specification, as well as the 
+new (proposed) 2.0 spec, which includes batch submission, keyword arguments,
+ etc.")
+    (license license:expat)))
-- 
2.7.4