@@ -0,0 +1,44 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchpatch
4+, fetchPypi
5+, flask
6+, flask-silk
7+, future
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "Flask-AutoIndex";
12+ version = "0.6";
13+
14+ src = fetchPypi {
15+ inherit pname version;
16+ sha256 = "19b10mb1nrqfjyafki6wnrbn8mqi30bbyyiyvp5xssc74pciyfqs";
17+ };
18+
19+ propagatedBuildInputs = [
20+ flask
21+ flask-silk
22+ future
23+ ];
24+
25+ patches = [
26+ # fix generated binary, see https://github.com/sublee/flask-autoindex/pull/32
27+ (fetchpatch {
28+ name = "fix_binary.patch";
29+ url = "https://github.com/sublee/flask-autoindex/pull/32.patch";
30+ sha256 = "1v2r0wvi7prhipjq89774svv6aqj0a13mdfj07pdlkpzfbf029dn";
31+ })
32+ ];
33+
34+ meta = with stdenv.lib; {
35+ description = "The mod_autoindex for Flask";
36+ longDescription = ''
37+ Flask-AutoIndex generates an index page for your Flask application automatically.
38+ The result is just like mod_autoindex, but the look is more awesome!
39+ '';
40+ license = licenses.bsd2;
41+ maintainers = with maintainers; [ timokau ];
42+ homepage = http://pythonhosted.org/Flask-AutoIndex/;
43+ };
44+}