From patchwork Wed Sep 9 09:50:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcin Niestroj X-Patchwork-Id: 1360502 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=grinn-global.com Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BmcjK6lfKz9sT6 for ; Wed, 9 Sep 2020 19:51:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7CEF986E97; Wed, 9 Sep 2020 09:51:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1w8fUF02zOzJ; Wed, 9 Sep 2020 09:51:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 6863C86EB0; Wed, 9 Sep 2020 09:51:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 87B6A1BF419 for ; Wed, 9 Sep 2020 09:51:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 817B223265 for ; Wed, 9 Sep 2020 09:51:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KhWHXQ0n3HOF for ; Wed, 9 Sep 2020 09:51:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp2.megiteam.pl (smtp2.megiteam.pl [213.189.52.193]) by silver.osuosl.org (Postfix) with ESMTPS id B8ACE2E17D for ; Wed, 9 Sep 2020 09:51:09 +0000 (UTC) Received: from [95.143.241.142] (helo=localhost.localdomain) by smtp.megiteam.pl with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86.2_XX) (envelope-from ) id 1kFwkt-0003Bf-8G; Wed, 09 Sep 2020 11:51:07 +0200 From: Marcin Niestroj To: buildroot@buildroot.org Date: Wed, 9 Sep 2020 11:50:38 +0200 Message-Id: <20200909095038.898192-1-m.niestroj@grinn-global.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2] package/python-xmodem: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marcin Niestroj , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- v1 -> v2: * added PKG-INFO as license file DEVELOPERS | 1 + package/Config.in | 1 + package/python-xmodem/Config.in | 6 ++++++ package/python-xmodem/python-xmodem.hash | 5 +++++ package/python-xmodem/python-xmodem.mk | 14 ++++++++++++++ 5 files changed, 27 insertions(+) create mode 100644 package/python-xmodem/Config.in create mode 100644 package/python-xmodem/python-xmodem.hash create mode 100644 package/python-xmodem/python-xmodem.mk diff --git a/DEVELOPERS b/DEVELOPERS index b1e60e505f..bccd444e10 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1634,6 +1634,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 diff --git a/package/Config.in b/package/Config.in index 17d2bd4f92..548484e206 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1229,6 +1229,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" diff --git a/package/python-xmodem/Config.in b/package/python-xmodem/Config.in new file mode 100644 index 0000000000..ef927f1337 --- /dev/null +++ b/package/python-xmodem/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_XMODEM + bool "python-xmodem" + help + XMODEM protocol implementation. + + https://github.com/tehmaze/xmodem diff --git a/package/python-xmodem/python-xmodem.hash b/package/python-xmodem/python-xmodem.hash new file mode 100644 index 0000000000..33ddfeb595 --- /dev/null +++ b/package/python-xmodem/python-xmodem.hash @@ -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 diff --git a/package/python-xmodem/python-xmodem.mk b/package/python-xmodem/python-xmodem.mk new file mode 100644 index 0000000000..739c6154d7 --- /dev/null +++ b/package/python-xmodem/python-xmodem.mk @@ -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))