1{ lib
2, buildPythonPackage
3, fetchPypi
4, flask
5, flask-silk
6, future
7, pythonOlder
8, unittestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "flask-autoindex";
13 version = "0.6.6";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 pname = "Flask-AutoIndex";
20 inherit version;
21 sha256 = "ea319f7ccadf68ddf98d940002066278c779323644f9944b300066d50e2effc7";
22 };
23
24 propagatedBuildInputs = [
25 flask
26 flask-silk
27 future
28 ];
29
30 nativeCheckInputs = [
31 unittestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "flask_autoindex"
36 ];
37
38 meta = with lib; {
39 description = "The mod_autoindex for Flask";
40 longDescription = ''
41 Flask-AutoIndex generates an index page for your Flask application automatically.
42 The result is just like mod_autoindex, but the look is more awesome!
43 '';
44 homepage = "https://flask-autoindex.readthedocs.io/";
45 changelog = "https://github.com/general03/flask-autoindex/blob/v${version}/CHANGELOG.md";
46 license = licenses.bsd2;
47 maintainers = teams.sage.members;
48 # https://github.com/general03/flask-autoindex/issues/67
49 broken = true;
50 };
51}