package/python-ansicolors: new package
authorMarcin Niestroj <m.niestroj@grinn-global.com>
Thu, 30 Apr 2020 13:11:03 +0000 (15:11 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 27 Aug 2020 20:59:29 +0000 (22:59 +0200)
Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Reviewed-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-ansicolors/Config.in [new file with mode: 0644]
package/python-ansicolors/python-ansicolors.hash [new file with mode: 0644]
package/python-ansicolors/python-ansicolors.mk [new file with mode: 0644]

index 81391e566644dc566852cc428173467358bba2d0..c0c6de8d5d2d59685245b84d0bf20cb72802331d 100644 (file)
@@ -1596,6 +1596,7 @@ F:        package/lua-stdlib/
 F:     package/luaossl/
 F:     package/murata-cyw-fw/
 F:     package/netdata/
+F:     package/python-ansicolors/
 F:     package/rs485conf/
 F:     package/turbolua/
 F:     support/testing/tests/package/test_netdata.py
index 1a886a35971870aba8806091bc54bac38f0caaec..85a6f44910e555491a80f5fef733cc1d871ccff8 100644 (file)
@@ -872,6 +872,7 @@ menu "External python modules"
        source "package/python-aiosignal/Config.in"
        source "package/python-aiozipkin/Config.in"
        source "package/python-alsaaudio/Config.in"
+       source "package/python-ansicolors/Config.in"
        source "package/python-argh/Config.in"
        source "package/python-argon2-cffi/Config.in"
        source "package/python-arrow/Config.in"
diff --git a/package/python-ansicolors/Config.in b/package/python-ansicolors/Config.in
new file mode 100644 (file)
index 0000000..78da50d
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_ANSICOLORS
+       bool "python-ansicolors"
+       help
+         ANSI colors for Python.
+
+         http://github.com/jonathaneunice/colors/
diff --git a/package/python-ansicolors/python-ansicolors.hash b/package/python-ansicolors/python-ansicolors.hash
new file mode 100644 (file)
index 0000000..9fb51eb
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/ansicolors/json
+md5  9ca7e2396ffa2e20af023c6b83ab7b14  ansicolors-1.1.8.zip
+sha256  99f94f5e3348a0bcd43c82e5fc4414013ccc19d70bd939ad71e0133ce9c372e0  ansicolors-1.1.8.zip
+# Locally computed sha256 checksums
+sha256  71a13496c621f01b454f9aa54fa608a712f58eb253e6dd2c91027fe78340c773  LICENSE
diff --git a/package/python-ansicolors/python-ansicolors.mk b/package/python-ansicolors/python-ansicolors.mk
new file mode 100644 (file)
index 0000000..787ce8c
--- /dev/null
@@ -0,0 +1,20 @@
+################################################################################
+#
+# python-ansicolors
+#
+################################################################################
+
+PYTHON_ANSICOLORS_VERSION = 1.1.8
+PYTHON_ANSICOLORS_SOURCE = ansicolors-$(PYTHON_ANSICOLORS_VERSION).zip
+PYTHON_ANSICOLORS_SITE = https://files.pythonhosted.org/packages/76/31/7faed52088732704523c259e24c26ce6f2f33fbeff2ff59274560c27628e
+PYTHON_ANSICOLORS_SETUP_TYPE = setuptools
+PYTHON_ANSICOLORS_LICENSE = ISC
+PYTHON_ANSICOLORS_LICENSE_FILES = LICENSE
+
+define PYTHON_ANSICOLORS_EXTRACT_CMDS
+       unzip $(PYTHON_ANSICOLORS_DL_DIR)/$(PYTHON_ANSICOLORS_SOURCE) -d $(@D)
+       mv $(@D)/ansicolors-$(PYTHON_ANSICOLORS_VERSION)/* $(@D)
+       $(RM) -r $(@D)/ansicolors-$(PYTHON_ANSICOLORS_VERSION)
+endef
+
+$(eval $(python-package))