From: "Marcin Niestrój" <m.niestroj@grinn-global.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/python-ansicolors: new package
Date: Thu, 30 Apr 2020 15:13:12 +0200 [thread overview]
Message-ID: <87ftcl86c7.fsf@grinn-global.com> (raw)
In-Reply-To: <20200430130213.2475791-1-m.niestroj@grinn-global.com>
Patch was not properly rebased on master, so sent fixed v2 already.
Marcin Niestroj <m.niestroj@grinn-global.com> writes:
> Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
> ---
> DEVELOPERS | 1 +
> package/Config.in | 1 +
> package/python-ansicolors/Config.in | 6 ++++++
> .../python-ansicolors/python-ansicolors.hash | 5 +++++
> .../python-ansicolors/python-ansicolors.mk | 20 +++++++++++++++++++
> 5 files changed, 33 insertions(+)
> create mode 100644 package/python-ansicolors/Config.in
> create mode 100644 package/python-ansicolors/python-ansicolors.hash
> create mode 100644 package/python-ansicolors/python-ansicolors.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 545d3a407e..0665c78a07 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1600,6 +1600,7 @@ F: package/lua-stdlib/
> F: package/luaossl/
> F: package/murata-cyw-fw/
> F: package/netdata/
> +F: package/python-ansicolors/
> F: package/python-xmodem/
> F: package/rs485conf/
> F: package/turbolua/
> diff --git a/package/Config.in b/package/Config.in
> index 49671993ed..d005a6d8eb 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -870,6 +870,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
> index 0000000000..78da50dfc2
> --- /dev/null
> +++ b/package/python-ansicolors/Config.in
> @@ -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
> index 0000000000..9fb51eb5d1
> --- /dev/null
> +++ b/package/python-ansicolors/python-ansicolors.hash
> @@ -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
> index 0000000000..787ce8c40b
> --- /dev/null
> +++ b/package/python-ansicolors/python-ansicolors.mk
> @@ -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))
--
Marcin Niestr?j
prev parent reply other threads:[~2020-04-30 13:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-30 13:02 [Buildroot] [PATCH] package/python-ansicolors: new package Marcin Niestroj
2020-04-30 13:13 ` Marcin Niestrój [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ftcl86c7.fsf@grinn-global.com \
--to=m.niestroj@grinn-global.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.