From patchwork Tue Mar 6 20:03:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asaf Kahlon X-Patchwork-Id: 882211 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="KeA+0Rz3"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zwnnB5JSzz9s4s for ; Wed, 7 Mar 2018 07:05:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6169C886F9; Tue, 6 Mar 2018 20:05:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JF36qxyII0Cn; Tue, 6 Mar 2018 20:04:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id CD521886E0; Tue, 6 Mar 2018 20:04:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 457C41C0AE0 for ; Tue, 6 Mar 2018 20:04:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 40396886E0 for ; Tue, 6 Mar 2018 20:04:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ozCMgVgWL2PU for ; Tue, 6 Mar 2018 20:04:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id 918B3886DE for ; Tue, 6 Mar 2018 20:04:54 +0000 (UTC) Received: by mail-wr0-f172.google.com with SMTP id v65so22205235wrc.11 for ; Tue, 06 Mar 2018 12:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=i4RgIz1h2rr0BxJnd2eA2q/vKbv4QqFLL2C9V6teMzs=; b=KeA+0Rz3j0rcGwnRZHbo05PFojEb7t1MVzfLTgGWsMKtYxoARvgEZM+3jHnV6r6xyF 4H9xCXpu13sCj6u4Pu4Mo95L5neR3Z35JC//o9L6CZ/AqL4EnsOgQ1pNMsTsb9WBsoNz jlnITnBl7b1IwNU89GJI0XB6o1w/Bx9hO63g4q+BWurnOkPyXJilSS3fO1poTdsdQrbd V3vZcpsnj74gQG7GZE08KKhgnTMbbnM4OGmE82w2m+lkUGSAEDhX2n3QYrQqEUQotWMH srVNYHNMBK7T6aHz/GwqambZNdHb7iFmzArb14o+dcG+1/IqkXDbHpWJkid6gD9cwnhV FECw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=i4RgIz1h2rr0BxJnd2eA2q/vKbv4QqFLL2C9V6teMzs=; b=DzFuIMJnkh3IKyVPIzg2jBJbEqaIUEY51aJmW1pDbmZb0Jxv5KJsSKDEJyH3EpHmU/ QeCHI2knzvyh3WGZDGe3fbOTKKTvnW9iy5La6Z8ScpwoslqELFtmR2UWQS1I4RA9xIpV y24sHnJkH1HTMO3nWk28CSZvJQWdlrv/TGEQH05ikP+GDn/tVoD1+0w/C3imAoLCJsXU Lg1VrjhaKSC7+ZP+Q0GKLIB3rWgVx+8H3CqL8gGrxoPWZvFtrgSxgPR/8kpK0A/+XuK8 +mifZgIUHpgoz4KpGw2f4VPO35a92bY09+oqBdhfIR0E1XwZMGb6bO+liFy76jOnWDuO nuHg== X-Gm-Message-State: APf1xPAKFg3GxvNT8JVCtPSSNSWMygLX1562hIJgDeNfiu/8BY+9+KHd Dvdq2WXDjZhMfqFGcazUNfWfMg== X-Google-Smtp-Source: AG47ELsDHjxqxiPZjNx896IF13EQ6pXOQDHiYJQk9ys/Su1u85K2QFcHNqq6rD6/Gm8pHNea1VRkvA== X-Received: by 10.223.184.147 with SMTP id i19mr16468993wrf.102.1520366692997; Tue, 06 Mar 2018 12:04:52 -0800 (PST) Received: from localhost.localdomain (bzq-84-108-5-46.cablep.bezeqint.net. [84.108.5.46]) by smtp.gmail.com with ESMTPSA id t141sm14710331wmd.34.2018.03.06.12.04.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Mar 2018 12:04:52 -0800 (PST) From: Asaf Kahlon To: buildroot@buildroot.org Date: Tue, 6 Mar 2018 22:03:25 +0200 Message-Id: <20180306200325.9532-1-asafka7@gmail.com> X-Mailer: git-send-email 2.14.1 Subject: [Buildroot] [PATCH 1/1] python-jsonmodels: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Asaf Kahlon MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Package to create and handle json structures in Python, with very easy and convenient API. Signed-off-by: Asaf Kahlon Reviewed-by: Yegor Yefremov --- DEVELOPERS | 3 +++ package/Config.in | 1 + package/python-jsonmodels/Config.in | 9 +++++++++ package/python-jsonmodels/python-jsonmodels.hash | 4 ++++ package/python-jsonmodels/python-jsonmodels.mk | 14 ++++++++++++++ 5 files changed, 31 insertions(+) create mode 100644 package/python-jsonmodels/Config.in create mode 100644 package/python-jsonmodels/python-jsonmodels.hash create mode 100644 package/python-jsonmodels/python-jsonmodels.mk diff --git a/DEVELOPERS b/DEVELOPERS index 1baa933ee3..f3590f8b52 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -178,6 +178,9 @@ F: package/python-bottle/ F: package/sqlcipher/ F: package/stress/ +N: Asaf Kahlon +F: package/python-jsonmodels/ + N: Ash Charles F: package/pru-software-support/ F: package/ti-cgt-pru/ diff --git a/package/Config.in b/package/Config.in index 12d3d2bbff..6abbb43e38 100644 --- a/package/Config.in +++ b/package/Config.in @@ -805,6 +805,7 @@ menu "External python modules" source "package/python-itsdangerous/Config.in" source "package/python-jaraco-classes/Config.in" source "package/python-jinja2/Config.in" + source "package/python-jsonmodels/Config.in" source "package/python-jsonschema/Config.in" source "package/python-json-schema-validator/Config.in" source "package/python-keyring/Config.in" diff --git a/package/python-jsonmodels/Config.in b/package/python-jsonmodels/Config.in new file mode 100644 index 0000000000..d840e2acfe --- /dev/null +++ b/package/python-jsonmodels/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_JSONMODELS + bool "python-jsonmodels" + select BR2_PACKAGE_PYTHON_DATEUTIL # runtime + select BR2_PACKAGE_PYTHON_SIX # runtime + help + Models to make easier to deal with structures that are converted + to, or read from JSON. + + https://github.com/beregond/jsonmodels diff --git a/package/python-jsonmodels/python-jsonmodels.hash b/package/python-jsonmodels/python-jsonmodels.hash new file mode 100644 index 0000000000..f5b1ac5ef1 --- /dev/null +++ b/package/python-jsonmodels/python-jsonmodels.hash @@ -0,0 +1,4 @@ +# md5 from https://pypi.python.org/pypi/jsonmodels/json, sha256 locally computed +md5 e42b6c0078e731035ec3f1bf8a6cdc92 jsonmodels-2.3.tar.gz +sha256 09e9639c85531e0f37991bb23a363494e37a2e89fb480dbc03d9556258f4ea47 jsonmodels-2.3.tar.gz +sha256 3b1219763eec6924ddd4c4d61dee6a53c5fc9ab62707a9ad763ee363d3050cc5 LICENSE diff --git a/package/python-jsonmodels/python-jsonmodels.mk b/package/python-jsonmodels/python-jsonmodels.mk new file mode 100644 index 0000000000..4d4da87969 --- /dev/null +++ b/package/python-jsonmodels/python-jsonmodels.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-jsonmodels +# +################################################################################ + +PYTHON_JSONMODELS_VERSION = 2.3 +PYTHON_JSONMODELS_SOURCE = jsonmodels-$(PYTHON_JSONMODELS_VERSION).tar.gz +PYTHON_JSONMODELS_SITE = https://pypi.python.org/packages/ab/0f/e214845b49881d3b2bebd1f387eedc5b26ac5580353a0a38074e94439957 +PYTHON_JSONMODELS_SETUP_TYPE = setuptools +PYTHON_JSONMODELS_LICENSE = BSD-3-Clause +PYTHON_JSONMODELS_LICENSE_FILES = LICENSE + +$(eval $(python-package))