Subject: bug#25834: [PATCH 1/7] gnu: Add python2-backports-shutil-get-terminal-size.

From: Thomas Danckaert <[email-masked]>
Date: Wed, 22 Feb 2017 12:22:47 +0100

From: Thomas Danckaert <[email-masked]>

* gnu/packages/python.scm (python2-backports-shutil-get-terminal-size): New
  variable.
---
 gnu/packages/python.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 432298472..13906153c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -33,7 +33,7 @@
 ;;; Copyright © 2016 Arun Isaac <[email-masked]>
 ;;; Copyright © 2016, 2017 Julien Lepiller <[email-masked]>
 ;;; Copyright © 2016, 2017 Tobias Geerinckx-Rice <[email-masked]>
-;;; Copyright © 2016 Thomas Danckaert <[email-masked]>
+;;; Copyright © 2016, 2017 Thomas Danckaert <[email-masked]>
 ;;; Copyright © 2017 Carlo Zancanaro <[email-masked]>
 ;;; Copyright © 2017 Frederick M. Muriithi <[email-masked]>
 ;;;
@@ -5787,6 +5787,32 @@ connection to each user.")
 (define-public python2-backports-abc
   (package-with-python2 python-backports-abc))
 
+(define-public python2-backports-shutil-get-terminal-size
+  (package-with-python2
+   (package
+     (name "python-backports-shutil-get-terminal-size")
+     (version "1.0.0")
+     (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "https://pypi.python.org/packages/ec/9c/"
+              "368086faa9c016efce5da3e0e13ba392c9db79e3ab740b763fe28620b18b/"
+              "backports.shutil_get_terminal_size-" version ".tar.gz"))
+        (sha256
+         (base32
+          "107cmn7g3jnbkp826zlj8rrj19fam301qvaqf0f3905f5217lgki"))))
+     (build-system python-build-system)
+     (home-page
+      "https://github.com/chrippa/backports.shutil_get_terminal_size")
+     (synopsis
+      "Backport of Python 3.3's @code{shutil.get_terminal_size()}")
+     (description
+      "A backport of the get_terminal_size function from Python 3.3's shutil.
+Unlike the original version it is written in pure Python rather than C, so it
+might be a tiny bit slower.")
+     (license license:expat))))
+
 (define-public python-waf
   (package
     (name "python-waf")
-- 
2.11.1