From aa5c233c36bcc8fd51c84f7776c1b3a2875a3d98 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sun, 28 May 2023 21:01:09 +0200 Subject: [PATCH] package/python-asttokens: new package Signed-off-by: Romain Naour [Peter: fix alphabetical ordering] Signed-off-by: Peter Korsgaard --- package/Config.in | 1 + package/python-asttokens/Config.in | 7 +++++++ package/python-asttokens/python-asttokens.hash | 5 +++++ package/python-asttokens/python-asttokens.mk | 16 ++++++++++++++++ 4 files changed, 29 insertions(+) create mode 100644 package/python-asttokens/Config.in create mode 100644 package/python-asttokens/python-asttokens.hash create mode 100644 package/python-asttokens/python-asttokens.mk diff --git a/package/Config.in b/package/Config.in index 3da005b5e5..bc78acebda 100644 --- a/package/Config.in +++ b/package/Config.in @@ -967,6 +967,7 @@ menu "External python modules" source "package/python-arrow/Config.in" source "package/python-asgiref/Config.in" source "package/python-asn1crypto/Config.in" + source "package/python-asttokens/Config.in" source "package/python-async-generator/Config.in" source "package/python-async-lru/Config.in" source "package/python-async-timeout/Config.in" diff --git a/package/python-asttokens/Config.in b/package/python-asttokens/Config.in new file mode 100644 index 0000000000..2732b8124b --- /dev/null +++ b/package/python-asttokens/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_ASTTOKENS + bool "python-asttokens" + select BR2_PACKAGE_PYTHON_SIX # runtime + help + Annotate AST trees with source code positions. + + https://github.com/gristlabs/asttokens diff --git a/package/python-asttokens/python-asttokens.hash b/package/python-asttokens/python-asttokens.hash new file mode 100644 index 0000000000..6529e4db41 --- /dev/null +++ b/package/python-asttokens/python-asttokens.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/asttokens/json +md5 a9ae6ae0f85398e511bcb9ec87695eed asttokens-2.2.1.tar.gz +sha256 4622110b2a6f30b77e1473affaa97e711bc2f07d3f10848420ff1898edbe94f3 asttokens-2.2.1.tar.gz +# Locally computed sha256 checksums +sha256 b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 LICENSE diff --git a/package/python-asttokens/python-asttokens.mk b/package/python-asttokens/python-asttokens.mk new file mode 100644 index 0000000000..8a8ce1ddd9 --- /dev/null +++ b/package/python-asttokens/python-asttokens.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# python-asttokens +# +################################################################################ + +PYTHON_ASTTOKENS_VERSION = 2.2.1 +PYTHON_ASTTOKENS_SOURCE = asttokens-$(PYTHON_ASTTOKENS_VERSION).tar.gz +PYTHON_ASTTOKENS_SITE = https://files.pythonhosted.org/packages/c8/e3/b0b4f32162621126fbdaba636c152c6b6baec486c99f48686e66343d638f +PYTHON_ASTTOKENS_SETUP_TYPE = setuptools +PYTHON_ASTTOKENS_LICENSE = Apache-2.0 +PYTHON_ASTTOKENS_LICENSE_FILES = LICENSE + +PYTHON_ASTTOKENS_DEPENDENCIES = host-python-setuptools-scm + +$(eval $(python-package))