>From 63500efe49a1a9bea44857471e094bdff38fdc45 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Sat, 18 Jun 2016 15:04:01 +1000 Subject: [PATCH] gnu: Add python2-qrcode. * gnu/packages/python.scm (python2-qrcode): New variable. --- gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b294814..26fef4b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9281,3 +9281,34 @@ 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 asl2.0))) + +(define-public python2-qrcode + (package + (name "python2-qrcode") + (version "5.3") + (source + (origin + (method url-fetch) + (uri + (string-append + "https://pypi.python.org/packages/" + "87/16/99038537dc58c87b136779c0e06d46887ff5104eb8c64989aac1ec8cba81" + "/qrcode-" version ".tar.gz")) + (sha256 + (base32 + "0kljfrfq0c2rmxf8am57333ia41kd0snbm2rnqbdy816hgpcq5a1")))) + (build-system python-build-system) + (inputs + `(("python2-pillow" ,python2-pillow) + ("python2-six" ,python2-six))) + (native-inputs + `(("python2-setuptools" ,python2-setuptools))) + (arguments + `(#:python ,python-2)) + (home-page "https://pypi.python.org/pypi/qrcode") + (synopsis "Python library to generate QR Codes") + (description + "@code{qrcode} is a library which can be used to generate Quick +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))) -- 2.7.4