1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, flask
6, flask-silk
7, future
8, pathlib
9}:
10
11buildPythonPackage rec {
12 pname = "Flask-AutoIndex";
13 version = "0.6.6";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "ea319f7ccadf68ddf98d940002066278c779323644f9944b300066d50e2effc7";
18 };
19
20 propagatedBuildInputs = [
21 flask
22 flask-silk
23 future
24 ] ++ lib.optionals (pythonOlder "3.4") [
25 pathlib
26 ];
27
28 meta = with lib; {
29 description = "The mod_autoindex for Flask";
30 longDescription = ''
31 Flask-AutoIndex generates an index page for your Flask application automatically.
32 The result is just like mod_autoindex, but the look is more awesome!
33 '';
34 license = licenses.bsd2;
35 maintainers = teams.sage.members;
36 homepage = "https://pythonhosted.org/Flask-AutoIndex/";
37 };
38}