Patchwork [3/3] gnu: Add python-flask-restplus.

login
register
mail settings
Submitter Danny Milosavljevic
Date Nov. 10, 2016, 12:09 a.m.
Message ID <20161110000904.29331-4-dannym@scratchpost.org>
Download mbox | patch
Permalink /patch/17366/
State New
Headers show

Comments

Danny Milosavljevic - Nov. 10, 2016, 12:09 a.m.
* gnu/packages/python.scm (python-flask-restplus): New variable.
---
 gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
Ludovic Courtès - Nov. 12, 2016, 3:19 p.m.
Danny Milosavljevic <dannym@scratchpost.org> skribis:

> * gnu/packages/python.scm (python-flask-restplus): New variable.

Applied with synopsis/description tweak, thanks!

Ludo’.

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index cb25d4e..58b49ed 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12212,3 +12212,33 @@  asynchronous messaging environments.")
     (synopsis "Colored output for Python nosetests")
     (description "This package provides colored output for Python nosetests.")
     (license license:bsd-3)))
+
+(define-public python-flask-restplus
+  (package
+    (name "python-flask-restplus")
+    (version "0.9.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "flask-restplus" version))
+        (sha256
+          (base32
+            "11his6ii5brpkhld0d5bwzjjw4q3vmplpd6fmgzjrvvklsbk0cf4"))))
+    (build-system python-build-system)
+    (propagated-inputs
+      `(("python-aniso8601" ,python-aniso8601)
+        ("python-flask" ,python-flask)
+        ("python-jsonschema" ,python-jsonschema)
+        ("python-pytz" ,python-pytz)
+        ("python-six" ,python-six)))
+    (native-inputs
+     `(("python-tzlocal" ,python-tzlocal)
+       ("python-blinker" ,python-blinker)
+       ("python-nose" ,python-nose)
+       ("python-rednose" ,python-rednose)))
+    (home-page "https://github.com/noirbizarre/flask-restplus")
+    (synopsis "Framework for fast, easy and documented API development with Flask")
+    (description "This package provides a framework for API development with Flask.
+It's like the package @code{python-flask-restful} - but supports @code{python-swagger}
+documentation builder.")
+    (license license:expat)))