about summary refs log tree commit diff
path: root/pkgs/development/python-modules/flask-autoindex
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-04-11 18:53:31 +0200
committerTimo Kaufmann <timokau@zoho.com>2018-04-23 13:26:43 +0200
commita8f9fc1c1647d1407863a34ece572db428e7fb3b (patch)
tree3ac228f0414e89b9226e34c33eccbf58ddf61d1b /pkgs/development/python-modules/flask-autoindex
parentfb7cdbc15d964f3a3b7337ed125fb2b5a20c30cc (diff)
pythonPackages.flask-autoindex: init at 0.6
Diffstat (limited to 'pkgs/development/python-modules/flask-autoindex')
-rw-r--r--pkgs/development/python-modules/flask-autoindex/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/flask-autoindex/default.nix b/pkgs/development/python-modules/flask-autoindex/default.nix
new file mode 100644
index 0000000000000..397d1e03ee82b
--- /dev/null
+++ b/pkgs/development/python-modules/flask-autoindex/default.nix
@@ -0,0 +1,44 @@
+{ stdenv
+, buildPythonPackage
+, fetchpatch
+, fetchPypi
+, flask
+, flask-silk
+, future
+}:
+
+buildPythonPackage rec {
+  pname = "Flask-AutoIndex";
+  version = "0.6";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "19b10mb1nrqfjyafki6wnrbn8mqi30bbyyiyvp5xssc74pciyfqs";
+  };
+
+  propagatedBuildInputs = [
+    flask
+    flask-silk
+    future
+  ];
+
+  patches = [
+    # fix generated binary, see https://github.com/sublee/flask-autoindex/pull/32
+    (fetchpatch {
+      name = "fix_binary.patch";
+      url = "https://github.com/sublee/flask-autoindex/pull/32.patch";
+      sha256 = "1v2r0wvi7prhipjq89774svv6aqj0a13mdfj07pdlkpzfbf029dn";
+    })
+  ];
+
+  meta = with stdenv.lib; {
+    description = "The mod_autoindex for Flask";
+    longDescription = ''
+      Flask-AutoIndex generates an index page for your Flask application automatically.
+      The result is just like mod_autoindex, but the look is more awesome!
+    '';
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ timokau ];
+    homepage = http://pythonhosted.org/Flask-AutoIndex/;
+  };
+}