package/python-pycrate: new package

Signed-off-by: Nasser Afshin <Afshin.Nasser@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Nasser Afshin 2022-10-29 11:32:29 +03:30 committed by Thomas Petazzoni
parent 4ced0a528d
commit a850f632b9
5 changed files with 35 additions and 0 deletions

View File

@ -2092,6 +2092,9 @@ N: Murat Demirten <mdemirten@yh.com.tr>
F: package/jpeg-turbo/
F: package/libgeotiff/
N: Nasser Afshin <afshin.nasser@gmail.com>
F: package/python-pycrate/
N: Nathaniel Roach <nroach44@gmail.com>
F: package/bandwidthd/
F: package/libgudev/

View File

@ -1196,6 +1196,7 @@ menu "External python modules"
source "package/python-pycairo/Config.in"
source "package/python-pycares/Config.in"
source "package/python-pycparser/Config.in"
source "package/python-pycrate/Config.in"
source "package/python-pycryptodomex/Config.in"
source "package/python-pycups/Config.in"
source "package/python-pydal/Config.in"

View File

@ -0,0 +1,6 @@
config BR2_PACKAGE_PYTHON_PYCRATE
bool "python-pycrate"
help
A software suite to handle various data formats.
https://github.com/P1sec/pycrate/

View File

@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/pycrate/json
md5 075622d5d573274cd4dbfe268ca52f7f pycrate-0.5.5.tar.gz
sha256 59f09331890a389a6b98412f19f4fb021c5a75a35ab07bf5ba0d1e299a0967af pycrate-0.5.5.tar.gz
# Locally computed
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 license.txt

View File

@ -0,0 +1,20 @@
################################################################################
#
# python-pycrate
#
################################################################################
PYTHON_PYCRATE_VERSION = 0.5.5
PYTHON_PYCRATE_SOURCE = pycrate-$(PYTHON_PYCRATE_VERSION).tar.gz
PYTHON_PYCRATE_SITE = https://files.pythonhosted.org/packages/25/8f/b3d7e0b541aa04b2f0f7aa694a6946b572bfa2e2627cf1f12b5416d633df
PYTHON_PYCRATE_SETUP_TYPE = setuptools
PYTHON_PYCRATE_EXTRA_DOWNLOADS = https://raw.githubusercontent.com/P1sec/pycrate/$(PYTHON_PYCRATE_VERSION)/license.txt
PYTHON_PYCRATE_LICENSE = LGPL-2.1+
PYTHON_PYCRATE_LICENSE_FILES = license.txt
define PYTHON_PYCRATE_ADD_LICENSE_FILE
cp $(PYTHON_PYCRATE_DL_DIR)/license.txt $(@D)
endef
PYTHON_PYCRATE_POST_EXTRACT_HOOKS += PYTHON_PYCRATE_ADD_LICENSE_FILE
$(eval $(python-package))