From patchwork Sun Apr 18 06:57:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: david larsson X-Patchwork-Id: 28641 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4C95727BC77; Sun, 18 Apr 2021 07:59:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9E01C27BC6C for ; Sun, 18 Apr 2021 07:59:08 +0100 (BST) Received: from localhost ([::1]:37396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY1Od-0001dc-SX for patchwork@mira.cbaines.net; Sun, 18 Apr 2021 02:59:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lY1OX-0001cz-St for guix-patches@gnu.org; Sun, 18 Apr 2021 02:59:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lY1OX-0002i4-LG for guix-patches@gnu.org; Sun, 18 Apr 2021 02:59:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lY1OX-00054A-LW for guix-patches@gnu.org; Sun, 18 Apr 2021 02:59:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47864] [PATCH 3/3] gnu: Add flask-combo-jsonapi. References: In-Reply-To: Resent-From: david larsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Apr 2021 06:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47864 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47864@debbugs.gnu.org Received: via spool by 47864-submit@debbugs.gnu.org id=B47864.161872909619420 (code B ref 47864); Sun, 18 Apr 2021 06:59:01 +0000 Received: (at 47864) by debbugs.gnu.org; 18 Apr 2021 06:58:16 +0000 Received: from localhost ([127.0.0.1]:45172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY1Nn-00053A-TZ for submit@debbugs.gnu.org; Sun, 18 Apr 2021 02:58:16 -0400 Received: from server0.selfhosted.xyz ([217.64.149.7]:59366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY1Nl-00052u-QX for 47864@debbugs.gnu.org; Sun, 18 Apr 2021 02:58:14 -0400 Received: from server0.selfhosted.xyz (localhost [127.0.0.1]) by server0.selfhosted.xyz (Postfix) with ESMTP id D935C1D36EFF for <47864@debbugs.gnu.org>; Sun, 18 Apr 2021 08:57:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selfhosted.xyz; s=dkim; t=1618729085; bh=i/OVbkvXtsH9tvfOScI3aVF9gDcvcLDxusD370c0PPc=; h=Date:From:To:Subject; b=z+qhwDKZTdoCsTuNYmzrhJCeC+ZsRVMcgSIwlOr0Sbe/lQZv1wm46TsXZwkPTDqcY lfASuuiWf/O0wSsODwke4RT//M3J+kq6If4GCOe4Q1NloRWem99nzAdIasrT6poZBw bDc1X7jh2/NTO47C8nphR/U90f60w0r2n+WwmxFYAfbvVuYWWdpTC5IHc9rsjELiKJ qq/VXd9InDav0w0TdBFfCs+6JTNFhXQVNRMvFCpZdao3kqp9vuku89i9iC+5c+tN8s EcxWVlZkl822DIfJzoxD54amKY83oxxCwqW1YOiUHJXiRe7bTsAyVdctZhsv5Gg/8x rELKzSQFLag0A== X-Fuglu-Suspect: c5c0cb3b22904d8e8cd6c22a535edad0 X-Fuglu-Spamstatus: NO Received: from webmail.selfhosted.xyz (office.selfhosted.xyz [192.168.1.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: mail@selfhosted.xyz) by server0.selfhosted.xyz (Postfix) with ESMTPSA for <47864@debbugs.gnu.org>; Sun, 18 Apr 2021 08:57:59 +0200 (CEST) MIME-Version: 1.0 Date: Sun, 18 Apr 2021 08:57:59 +0200 From: david larsson Message-ID: <60d19e93acb5c06eaa07388270db598c@selfhosted.xyz> X-Sender: david.larsson@selfhosted.xyz X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From 7e1c3d4e0c52a73c2369406c9165d0fff176a831 Mon Sep 17 00:00:00 2001 From: methuselah-0 Date: Wed, 31 Mar 2021 17:35:36 +0200 Subject: [PATCH 3/3] gnu: Add flask-combo-jsonapi. * gnu/packages/python-web.scm (python-flask-combo-jsonapi): New variable. --- gnu/packages/python-web.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index c7dd18ad19..8154ae82f7 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -40,6 +40,7 @@ ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Konrad Hinsen ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2021 David Larsson ;;; ;;; This file is part of GNU Guix. ;;; @@ -5894,3 +5895,42 @@ your code non-blocking and speedy.") "Socks is a library providing core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality.") (license license:asl2.0))) + +(define-public python-flask-combo-jsonapi + (package + (name "python-flask-combo-jsonapi") + (version "1.0.6") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/AdCombo/flask-combo-jsonapi/archive/" + version ".tar.gz")) + (sha256 + (base32 + "1ik5j4cc20q6ismpdzpb1a01wpdhm9vrnlmqzxxz2qqw6vazilna")))) + (build-system python-build-system) + (propagated-inputs + `(("python-flask" ,python-flask) + ("python-marshmallow" ,python-marshmallow-3.2) + ("python-marshmallow-jsonapi" + ,python-marshmallow-jsonapi-0.22) + ("python-apispec" ,python-apispec) + ("python-simplejson" ,python-simplejson) + ("python-six" ,python-six) + ("python-sqlalchemy" ,python-sqlalchemy))) + (native-inputs + `(("python-coverage" ,python-coverage) + ("python-coveralls" ,python-coveralls) + ("python-pytest-runner" ,python-pytest-runner) + ("python-pytest" ,python-pytest))) + (home-page + "https://github.com/AdCombo/flask-combo-jsonapi") + (synopsis + "Flask extension to create REST web api according to JSONAPI 1.0 + specification") + (description + "Flask extension to create REST web api according to JSONAPI 1.0 + specification with Flask, Marshmallow and data provider + of your choice (SQLAlchemy, MongoDB, ...)") + (license license:expat))) ; MIT license -- 2.30.2