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

login
register
mail settings
Submitter Danny Milosavljevic
Date Oct. 20, 2016, 9:45 p.m.
Message ID <20161020214539.7706-4-dannym@scratchpost.org>
Download mbox | patch
Permalink /patch/16703/
State New
Headers show

Comments

Danny Milosavljevic - Oct. 20, 2016, 9:45 p.m.
* gnu/packages/python.scm (python-flask-basicauth): New variable.
---
 gnu/packages/python.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ea56079..60ef79c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -11279,3 +11279,25 @@  useful as a validator for JSON data.")
     (description
       "This package contains a Flask module for creating REST APIs.")
     (license license:bsd-3)))
+
+(define-public python-flask-basicauth
+  (package
+    (name "python-flask-basicauth")
+    (version "0.2.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "Flask-BasicAuth" version))
+        (sha256
+          (base32
+            "1zq1spkjr4sjdnalpp8wl242kdqyk6fhbnhr8hi4r4f0km4bspnz"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-flask" ,python-flask)))
+    (home-page
+      "https://github.com/jpvanhal/flask-basicauth")
+    (synopsis
+      "HTTP basic access authentication for Flask.")
+    (description
+      "This package provides HTTP basic access authentication for Flask.")
+    (license license:bsd-3)))