From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MGrZLFgg1l5hSAAA0tVLHw (envelope-from ) for ; Tue, 02 Jun 2020 09:48:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2H/UKFgg1l6sHQAAB5/wlQ (envelope-from ) for ; Tue, 02 Jun 2020 09:48:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A8343940607 for ; Tue, 2 Jun 2020 09:48:06 +0000 (UTC) Received: from localhost ([::1]:36970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jg3Wf-0007W8-BM for larch@yhetil.org; Tue, 02 Jun 2020 05:48:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47422) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jg3Wb-0007Vi-VF for guix-patches@gnu.org; Tue, 02 Jun 2020 05:48:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jg3Wb-00009e-MD for guix-patches@gnu.org; Tue, 02 Jun 2020 05:48:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jg3Wb-0003FF-Jy for guix-patches@gnu.org; Tue, 02 Jun 2020 05:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41459] (no subject) References: <87a720au0g.fsf@alice.lan> In-Reply-To: <87a720au0g.fsf@alice.lan> Resent-From: Edouard Klein Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 02 Jun 2020 09:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41459 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41459@debbugs.gnu.org Received: via spool by 41459-submit@debbugs.gnu.org id=B41459.159109122512405 (code B ref 41459); Tue, 02 Jun 2020 09:48:01 +0000 Received: (at 41459) by debbugs.gnu.org; 2 Jun 2020 09:47:05 +0000 Received: from localhost ([127.0.0.1]:37958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jg3Vh-0003E1-EL for submit@debbugs.gnu.org; Tue, 02 Jun 2020 05:47:05 -0400 Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jg3Vf-0003Dq-EO for 41459@debbugs.gnu.org; Tue, 02 Jun 2020 05:47:03 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1591091125; cv=none; d=zohomail.com; s=zohoarc; b=jkwRM/E+6VYiqSUxNNVecvy4hzCUKFgnKSZFwJ3+YLthaISHLNq0O2gTIvSpbH9se2dPK3hEFptF8zUxvR3J1qe5CIMxFeyWWRhVacIzb03rENgEDIw20eKSn1dpJBjx5V4Zyyo3D/seBpiUp/Hfk5xFYd6u7YOCoC+XeGSTRyQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591091125; h=Content-Type:Date:From:MIME-Version:Message-ID:To; bh=HjBehgmS65BQdfExFerqNcoEju85ZxytYNAXR9sgKVU=; b=gXuMHIL5/syQ2dNaFrB7Xos19hTN9raueu+BHxFKBtshPsNctz7FPBaUP/vvDF/2jzfuE0i/baWezZvenLdWGWgYI5Vmad8D7OeUEp0B2z29vczExZYbXWIxKorsaCvIWV4Fbi4NAxyQNNj/5a+6jT4Vk2YRKcmMk2MZ60el8+o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=beaver-labs.com; spf=pass smtp.mailfrom=edk@beaver-labs.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1591091125; s=zoho; d=beaver-labs.com; i=edk@beaver-labs.com; h=From:To:Date:Message-ID:MIME-Version:Content-Type; bh=HjBehgmS65BQdfExFerqNcoEju85ZxytYNAXR9sgKVU=; b=XvE/cPu8UVye846MwMXiFN1RYdIPerDgsxuFY7SjRUiSB5m4tS1sumhvaSSu0t25 z822BlQTOdoo/KQokGmeX6bo3093YMM22WUBlpdJ4oH/0qGRYIJ7uoOtz4Uvu2DsND2 7kkC5D+93KTW3U/hfuSgVtANial3CEa836HPjzS0= Received: from alice.lan (lfbn-idf1-1-1299-119.w90-79.abo.wanadoo.fr [90.79.23.119]) by mx.zohomail.com with SMTPS id 1591091123653276.3126385992558; Tue, 2 Jun 2020 02:45:23 -0700 (PDT) From: Edouard Klein Date: Tue, 02 Jun 2020 11:45:18 +0200 Message-ID: <87d06hdcnl.fsf@alice.lan> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Spam-Score: 2.0 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 1.0 (+) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=beaver-labs.com header.s=zoho header.b=XvE/cPu8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -2.21 X-TUID: TNa46IP0P6Ms Subject: [PATCH 4/4] gnu: Add python-flask-restx >From 38a64901c9dcf53b4b32dd83bd6b50c4e4ea4d52 Mon Sep 17 00:00:00 2001 * gnu/packages/python-web.scm (python-flask-restx): New variable. --- gnu/packages/python-web.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 61d21418d4..f8c61b8a53 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -4024,3 +4024,51 @@ request/response web apps to larger, grown applications.") than 326,000 known user-agents. Users can pick a random one, or select one based on filters.") (license license:expat))) + +(define-public python-flask-restx + (package + (name "python-flask-restx") + (version "0.2.0") + (source + ;; We fetch from the Git repo because there are no tests in the PyPI + ;; archive. + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/python-restx/flask-restx") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xf2vkmdngp9cv9klznizai4byxjcf0iqh1pr4b83nann0jxqwy7")))) + (build-system python-build-system) + (propagated-inputs + `(("python-aniso8601" ,python-aniso8601) + ("python-flask" ,python-flask) + ("python-jsonschema" ,python-jsonschema) + ("python-pytz" ,python-pytz))) + (native-inputs + `(("python-blinker" ,python-blinker) + ("python-faker" ,python-faker) + ("python-pytest" ,python-pytest) + ("python-pytest-benchmark" + ,python-pytest-benchmark) + ("python-pytest-flask" ,python-pytest-flask) + ("python-pytest-mock" ,python-pytest-mock))) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (invoke "pytest" "--benchmark-skip" "-k" + ;; Those tests need internet access + "not test_check and not test_valid_value_check")))))) + (home-page "https://github.com/python-restx/flask-restx") + (synopsis + "Framework for fast, easy and documented API development with Flask") + (description + "Flask-RESTX is an extension for Flask that adds support for quickly building +REST APIs. Flask-RESTX encourages best practices with minimal setup. If you are familiar + with Flask, Flask-RESTX should be easy to pick up. It provides a coherent collection of +decorators and tools to describe your API and expose its documentation properly using +Swagger.") + (license license:bsd-3))) -- 2.26.2 Date: Tue, 02 Jun 2020 11:45:18 +0200 Message-ID: <87eeqxdcnl.fsf@alice.lan>