From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 07/10] gnu: Add python-funcsigs. Date: Fri, 29 Apr 2016 16:21:00 +0200 Message-ID: <1461939663-5936-8-git-send-email-tipecaml@gmail.com> References: <1461939663-5936-1-git-send-email-tipecaml@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw9Iq-0007FO-Fw for guix-devel@gnu.org; Fri, 29 Apr 2016 10:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aw9Ia-0001OW-7o for guix-devel@gnu.org; Fri, 29 Apr 2016 10:21:51 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:32837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aw9IY-0001Hg-VF for guix-devel@gnu.org; Fri, 29 Apr 2016 10:21:40 -0400 Received: by mail-wm0-x244.google.com with SMTP id r12so5480304wme.0 for ; Fri, 29 Apr 2016 07:21:24 -0700 (PDT) In-Reply-To: <1461939663-5936-1-git-send-email-tipecaml@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/python.scm (python-funcsigs, python2-funcsigs): New variables. --- gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 698b683..ad69368 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -728,6 +728,38 @@ API for locking files.") (native-inputs `(("python2-setuptools" ,python2-setuptools) ,@(package-native-inputs base)))))) +(define-public python-funcsigs + (package + (name "python-funcsigs") + (version "1.0.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/94/4a/" + "db842e7a0545de1cdb0439bb80e6e42dfe82aaeaadd4072f2263a4fbed23/" + "funcsigs-" version ".tar.gz")) + (sha256 + (base32 + "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools) + ("python-unittest2" ,python-unittest2))) + (home-page "http://funcsigs.readthedocs.org") + (synopsis + "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+") + (description + "Funcsigs is a backport of the PEP 362 function signature features from +Python 3.3's inspect module. The backport is compatible with Python 2.6, 2.7 +as well as 3.3 and up. 3.2 was supported by version 0.4, but with setuptools +and pip no longer supporting 3.2, we cannot make any statement about 3.2 +compatibility.") + (license asl2.0))) + +(define-public python2-funcsigs + (package-with-python2 python-funcsigs)) + (define-public python-mock (package (name "python-mock") -- 2.6.2