[Top][All Lists]

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

06/08: gnu: Add python-simplegeneric.

From: Ricardo Wurmus
Subject: 06/08: gnu: Add python-simplegeneric.
Date: Mon, 12 Oct 2015 14:08:38 +0000

rekado pushed a commit to branch master
in repository guix.

commit cd6e5189c8845b29a7a57916bbb87eb67df51c41
Author: Ricardo Wurmus <address@hidden>
Date:   Wed Sep 23 12:50:13 2015 +0200

    gnu: Add python-simplegeneric.
    * gnu/packages/python.scm (python-simplegeneric, python2-simplegeneric):
      New variables.
 gnu/packages/python.scm |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 41b08cf..beebd63 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -32,7 +32,7 @@
   #:use-module ((guix licenses)
                 #:select (asl2.0 bsd-4 bsd-3 bsd-2 non-copyleft cc0 x11 
                           gpl2 gpl2+ gpl3+ lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3+ 
-                          isc psfl public-domain x11-style))
+                          isc psfl public-domain x11-style zpl2.1))
   #:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
   #:use-module (gnu packages)
   #:use-module (gnu packages attr)
@@ -3882,6 +3882,34 @@ PickleShare.")
 (define-public python2-pickleshare
   (package-with-python2 python-pickleshare))
+(define-public python-simplegeneric
+  (package
+    (name "python-simplegeneric")
+    (version "0.8.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "";
+                           "simplegeneric/simplegeneric-" version ".zip"))
+       (sha256
+        (base32 "0wwi1c6md4vkbcsfsf8dklf3vr4mcdj4mpxkanwgb6jb1432x5yw"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("unzip" ,unzip)))
+    (home-page "";)
+    (synopsis "Python module for simple generic functions")
+    (description
+     "The simplegeneric module lets you define simple single-dispatch generic
+functions, akin to Python’s built-in generic functions like @code{len()},
address@hidden()} and so on.  However, instead of using specially-named methods,
+these generic functions use simple lookup tables, akin to those used by
+e.g. @code{pickle.dump()} and other generic functions found in the Python
+standard library.")
+    (license zpl2.1)))
+(define-public python2-simplegeneric
+  (package-with-python2 python-simplegeneric))
 (define-public python-ipython
     (name "python-ipython")

reply via email to

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