From: Ben Woodcroft <b.woodcroft@uq.edu.au>
To: Daniel Pimentel <d4n1@d4n1.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 2/2] gnu: Update python2-qrcode
Date: Sat, 18 Jun 2016 15:31:59 +1000 [thread overview]
Message-ID: <5764DCCF.2070508@uq.edu.au> (raw)
In-Reply-To: <a01f95de1992711beb98338143c528db@d4n1.org>
[-- Attachment #1: Type: text/plain, Size: 1342 bytes --]
Hi Daniel,
On 18/06/16 09:40, Daniel Pimentel wrote:
>> * gnu/packages/python.scm (python2-qrcode): New variable.
Thanks for the updated patch. In future would you mind sending the whole
patch like as attached? It just makes things easier - thanks.
I noticed that the sha256 did not change, so I changed the source field.
But perhaps more problematically, I couldn't get the example in the
README to work. Do you know if this is a problem with the library itself
or the packing of it?
$ ./pre-inst-env guix environment --pure --ad-hoc python2-qrcode python@2
...
$ python
Python 2.7.10 (default, Jan 1 1970, 00:00:01)
[GCC 4.9.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import qrcode
>>> img = qrcode.make('Some data here')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/gnu/store/n205hrfqrc0mp1csbh44mxpm19hrggld-profile/lib/python2.7/site-packages/qrcode-5.3-py2.7.egg/qrcode/main.py",
line 11, in make
File
"/gnu/store/n205hrfqrc0mp1csbh44mxpm19hrggld-profile/lib/python2.7/site-packages/qrcode-5.3-py2.7.egg/qrcode/main.py",
line 271, in make_image
File
"/gnu/store/n205hrfqrc0mp1csbh44mxpm19hrggld-profile/lib/python2.7/site-packages/qrcode-5.3-py2.7.egg/qrcode/image/pil.py",
line 8, in <module>
ImportError: No module named Image
[-- Attachment #2: 0001-gnu-Add-python2-qrcode.patch --]
[-- Type: text/x-patch, Size: 1801 bytes --]
From 63500efe49a1a9bea44857471e094bdff38fdc45 Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
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
next prev parent reply other threads:[~2016-06-18 5:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-14 19:26 [PATCH] gnu: Add python2-qrcode Daniel Pimentel
2016-06-14 19:51 ` ng0
2016-06-14 20:00 ` [PATCH] gnu: Update python2-qrcode Daniel Pimentel
2016-06-14 21:12 ` ng0
2016-06-14 21:48 ` d4n1
2016-06-15 13:12 ` Andreas Enge
2016-06-16 12:14 ` [PATCH] gnu: Update python2-qrcode (refactored) Daniel Pimentel
2016-06-16 22:08 ` Ben Woodcroft
2016-06-17 23:40 ` [PATCH 2/2] gnu: Update python2-qrcode Daniel Pimentel
2016-06-18 5:31 ` Ben Woodcroft [this message]
2016-06-23 16:14 ` Daniel Pimentel
2016-06-23 16:41 ` [PATCH] gnu: Add python2-qrcode Daniel Pimentel
2016-06-23 23:45 ` Ben Woodcroft
2016-06-17 23:47 ` [PATCH 2/2] gnu: Update python2-qrcode Daniel Pimentel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5764DCCF.2070508@uq.edu.au \
--to=b.woodcroft@uq.edu.au \
--cc=d4n1@d4n1.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.