package/python-backports-shutil-get-terminal-size: New package

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>
This commit is contained in:
Andrey Smirnov 2017-06-12 16:42:14 -07:00 committed by Thomas Petazzoni
parent 1039f4bbbb
commit c7b2f8cc87
5 changed files with 27 additions and 0 deletions

View 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/

View 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"

View File

@ -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

View File

@ -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

View File

@ -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))