package/python-xmodem: new package

Source package of newest release does not contain license file, so
PKG-INFO is used for now. Missing LICENSE file was added to master
branch of xmodem repository ([1]), so hopefully it will replace PKG-INFO
check after new xmodem release.

[1] https://github.com/tehmaze/xmodem/pull/42

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Marcin Niestroj 2020-09-09 11:50:38 +02:00 committed by Thomas Petazzoni
parent f8f806a2ef
commit 1c3e331043
5 changed files with 27 additions and 0 deletions

View File

@ -1597,6 +1597,7 @@ F: package/python-iniconfig/
F: package/python-packaging/
F: package/python-pluggy/
F: package/python-pytest/
F: package/python-xmodem/
F: package/rs485conf/
F: package/turbolua/
F: support/testing/tests/package/sample_python_pytest.py

View File

@ -1235,6 +1235,7 @@ menu "External python modules"
source "package/python-xlutils/Config.in"
source "package/python-xlwt/Config.in"
source "package/python-xmltodict/Config.in"
source "package/python-xmodem/Config.in"
source "package/python-yarl/Config.in"
source "package/python-yatl/Config.in"
source "package/python-yieldfrom/Config.in"

View File

@ -0,0 +1,6 @@
config BR2_PACKAGE_PYTHON_XMODEM
bool "python-xmodem"
help
XMODEM protocol implementation.
https://github.com/tehmaze/xmodem

View File

@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/xmodem/json
md5 f876cb35caf276b61990377710a3b4c4 xmodem-0.4.6.tar.gz
sha256 089737298f5738eabc43f2519efdc80b402693768f16383f7013b9e6f8f279d7 xmodem-0.4.6.tar.gz
# locally calculated
sha256 5ddb38acab95bb77e1e92e22830e358082d879d2dd59ba05577c47791edaa78e PKG-INFO

View File

@ -0,0 +1,14 @@
################################################################################
#
# python-xmodem
#
################################################################################
PYTHON_XMODEM_VERSION = 0.4.6
PYTHON_XMODEM_SOURCE = xmodem-$(PYTHON_XMODEM_VERSION).tar.gz
PYTHON_XMODEM_SITE = https://files.pythonhosted.org/packages/29/5d/a20d7957f207fc4c4c143881ca7b9617ab7700c153012372ef0a934c7710
PYTHON_XMODEM_SETUP_TYPE = setuptools
PYTHON_XMODEM_LICENSE = MIT
PYTHON_XMODEM_LICENSE_FILES = PKG-INFO
$(eval $(python-package))