[PATCH 2/4] gnu: Add python-qrcode.

2017-01-20 Thread Carlo Zancanaro
* 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




Re: [PATCH 2/4] gnu: Add python-qrcode.

2017-01-02 Thread Hartmut Goebel
Am 02.01.2017 um 14:32 schrieb Carlo Zancanaro:
> +(description "This module uses image libraries, Python Imaging
> +Library (PIL) by default, to generate QR Codes.")

Please be a bit more verbose here. AFAIK qr is also able to output
QR-codes to the console.

-- 
Regards
Hartmut Goebel

| Hartmut Goebel  | h.goe...@crazy-compilers.com   |
| www.crazy-compilers.com | compilers which you thought are impossible |




[PATCH 2/4] gnu: Add python-qrcode.

2017-01-02 Thread Carlo Zancanaro
* gnu/packages/python.scm (python-qrcode, python2-qrcode): New variables.
---
 gnu/packages/python.scm | 24 
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 2841830f0..9afb2f0b1 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12293,3 +12293,27 @@ function, PBKDF2, specified in RSA PKCS#5 v2.0.")
 
 (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)
+(propagated-inputs
+ `(("python-setuptools" ,python-setuptools)))
+(home-page
+ "https://github.com/lincolnloop/python-qrcode;)
+(synopsis "QR Code image generator")
+(description "This module uses image libraries, Python Imaging
+Library (PIL) by default, to generate QR Codes.")
+(license license:bsd-3)))
+
+(define-public python2-qrcode
+  (package-with-python2 python-qrcode))
-- 
2.11.0