package/python-backports-shutil-get-terminal-size: New package
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Mon, 12 Jun 2017 23:42:14 +0000 (16:42 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 15 Jun 2017 21:03:27 +0000 (23:03 +0200)
Add 'python-backports-shutil-get-terminal-size'[1] package to
buildroot. Needed by IPython when building against Python2.

[1] https://pypi.python.org/pypi/backports.shutil_get_terminal_size

Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
DEVELOPERS
package/Config.in
package/python-backports-shutil-get-terminal-size/Config.in [new file with mode: 0644]
package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash [new file with mode: 0644]
package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk [new file with mode: 0644]

index 8edfd5c04aac48db7eb5edd71f701a4e66951dc2..6ade852ee3adb7aec88133c4ce7130a41bebda0c 100644 (file)
@@ -81,6 +81,7 @@ F:    package/p7zip/
 F:     package/wine/
 
 N:     Andrey Smirnov <andrew.smirnov@gmail.com>
+F:     package/python-backports-shutil-get-terminal-size/
 F:     package/python-decorator/
 F:     package/python-ipython-genutils/
 F:     package/python-pathlib2/
index adea839b14512e8dda1bba705fc9fd01062def41..c997e2a306706811f9e2570b38078eb91b791f24 100644 (file)
@@ -682,6 +682,7 @@ menu "External python modules"
        source "package/python-autobahn/Config.in"
        source "package/python-babel/Config.in"
        source "package/python-backports-abc/Config.in"
+       source "package/python-backports-shutil-get-terminal-size/Config.in"
        source "package/python-bcrypt/Config.in"
        source "package/python-beautifulsoup4/Config.in"
        source "package/python-bitstring/Config.in"
diff --git a/package/python-backports-shutil-get-terminal-size/Config.in b/package/python-backports-shutil-get-terminal-size/Config.in
new file mode 100644 (file)
index 0000000..392e05a
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE
+       bool "python-backports-shutil-get-terminal-size"
+       depends on BR2_PACKAGE_PYTHON
+       help
+         A backport of the get_terminal_size function from Python
+         3.3's shutil.
+
+         https://pypi.python.org/pypi/backports.shutil_get_terminal_size
diff --git a/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash b/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.hash
new file mode 100644 (file)
index 0000000..c1b65e5
--- /dev/null
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/backports.shutil_get_terminal_size/json, sha256 locally computed
+md5 03267762480bd86b50580dc19dff3c66 backports.shutil_get_terminal_size-1.0.0.tar.gz
+sha256 713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80 backports.shutil_get_terminal_size-1.0.0.tar.gz
diff --git a/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk b/package/python-backports-shutil-get-terminal-size/python-backports-shutil-get-terminal-size.mk
new file mode 100644 (file)
index 0000000..68ac9a0
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-backports-shutil-get-terminal-size
+#
+################################################################################
+
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_VERSION = 1.0.0
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_SOURCE = backports.shutil_get_terminal_size-$(PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_VERSION).tar.gz
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_SITE = https://pypi.python.org/packages/ec/9c/368086faa9c016efce5da3e0e13ba392c9db79e3ab740b763fe28620b18b
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_SETUP_TYPE = setuptools
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_LICENSE = MIT
+PYTHON_BACKPORTS_SHUTIL_GET_TERMINAL_SIZE_LICENSE_FILE = LICENSE
+
+$(eval $(python-package))