From: Edouard Klein <edk@beaver-labs.com>
To: 41459@debbugs.gnu.org
Subject: [bug#41459] (no subject)
Date: Tue, 02 Jun 2020 11:45:18 +0200 [thread overview]
Message-ID: <87d06hdcnl.fsf@alice.lan> (raw)
In-Reply-To: <87a720au0g.fsf@alice.lan>
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>
next prev parent reply other threads:[~2020-06-02 9:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-22 15:06 [bug#41459] [PATCH] gnu: Add python-flask-restx Edouard Klein
2020-05-30 13:04 ` Marius Bakke
2020-06-02 10:06 ` Edouard Klein
2020-06-02 9:41 ` [bug#41459] [PATCH 1/4] gnu: Add python-py-cpuinfo Edouard Klein
2020-06-22 19:33 ` Marius Bakke
2020-06-02 9:44 ` [bug#41459] [PATCH 2/4] gnu: Add python-pytest-benchmark Edouard Klein
2020-06-22 19:36 ` Marius Bakke
2020-06-02 9:44 ` [bug#41459] (no subject) Edouard Klein
2020-06-22 19:39 ` Marius Bakke
2020-06-02 9:45 ` Edouard Klein [this message]
2020-06-22 19:43 ` bug#41459: " Marius Bakke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d06hdcnl.fsf@alice.lan \
--to=edk@beaver-labs.com \
--cc=41459@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).