From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Zancanaro Subject: [PATCH 2/4] gnu: Add python-qrcode. Date: Sat, 21 Jan 2017 15:35:26 +1100 Message-ID: <20170121043526.5610-1-carlo@zancanaro.id.au> References: <20170102133238.17811-3-carlo@zancanaro.id.au> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44645) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUnOu-0003rZ-9D for guix-devel@gnu.org; Fri, 20 Jan 2017 23:35:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUnOr-00068p-2V for guix-devel@gnu.org; Fri, 20 Jan 2017 23:35:40 -0500 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:36056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUnOq-00068S-Ko for guix-devel@gnu.org; Fri, 20 Jan 2017 23:35:37 -0500 Received: by mail-pf0-x242.google.com with SMTP id 19so6540862pfo.3 for ; Fri, 20 Jan 2017 20:35:36 -0800 (PST) Received: from localhost.localdomain (14-200-183-160.static.tpgi.com.au. [14.200.183.160]) by smtp.gmail.com with ESMTPSA id h17sm20175767pfh.62.2017.01.20.20.35.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jan 2017 20:35:34 -0800 (PST) In-Reply-To: <20170102133238.17811-3-carlo@zancanaro.id.au> 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-qrcode, python2-qrcode): New variables. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 21347b25e..0ee1b6ef8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -12491,3 +12491,28 @@ a file-like object from which an arbitrarly-sized key can be read.") (define-public python2-pbkdf2 (package-with-python2 python-pbkdf2)) +(define-public python-qrcode + (package + (name "python-qrcode") + (version "5.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "qrcode" version)) + (sha256 + (base32 + "0kljfrfq0c2rmxf8am57333ia41kd0snbm2rnqbdy816hgpcq5a1")))) + (build-system python-build-system) + (home-page "https://github.com/lincolnloop/python-qrcode") + (synopsis "QR Code image generator") + (description "This package provides a pure Python QR Code generator +module. It uses the Python Imaging Library (PIL) to allow for the generation +of QR Codes. + +In addition this package provides a command line tool to generate QR codes and +either write these QR codes to a file or do the output as ascii art at the +console.") + (license license:bsd-3))) + +(define-public python2-qrcode + (package-with-python2 python-qrcode)) -- 2.11.0