about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-06-02 23:32:30 +0200
committerJonathan Ringer <jonringer117@gmail.com>2021-06-21 16:48:39 -0700
commit2423806300447b2fe36f52e1f6a23d80fa093cd8 (patch)
tree2cc22592509f869db53421ebd50ca3bd56fdb333 /pkgs/development/python-modules/flask
parent1d623ad0180bb997445ebb1dd177ef591623fb34 (diff)
python2Packages.flask: reinit at 1.1.2
Diffstat (limited to 'pkgs/development/python-modules/flask')
-rw-r--r--pkgs/development/python-modules/flask/1.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/flask/1.nix b/pkgs/development/python-modules/flask/1.nix
new file mode 100644
index 0000000000000..27f436c3c53cb
--- /dev/null
+++ b/pkgs/development/python-modules/flask/1.nix
@@ -0,0 +1,28 @@
+{ lib, buildPythonPackage, fetchPypi
+, itsdangerous, click, werkzeug, jinja2, pytest }:
+
+buildPythonPackage rec {
+  version = "1.1.2";
+  pname = "Flask";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "4efa1ae2d7c9865af48986de8aeb8504bf32c7f3d6fdc9353d34b21f4b127060";
+  };
+
+  checkInputs = [ pytest ];
+  propagatedBuildInputs = [ itsdangerous click werkzeug jinja2 ];
+
+  checkPhase = ''
+    py.test
+  '';
+
+  # Tests require extra dependencies
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = "http://flask.pocoo.org/";
+    description = "A microframework based on Werkzeug, Jinja 2, and good intentions";
+    license = licenses.bsd3;
+  };
+}