2020-06-03 10:06:39 +00:00
|
|
|
{ lib
|
2018-04-11 16:53:31 +00:00
|
|
|
, buildPythonPackage
|
2020-06-03 10:06:39 +00:00
|
|
|
, pythonOlder
|
2018-07-06 20:47:40 +00:00
|
|
|
, fetchPypi
|
2018-04-11 16:53:31 +00:00
|
|
|
, flask
|
|
|
|
, flask-silk
|
|
|
|
, future
|
2020-06-03 10:06:39 +00:00
|
|
|
, pathlib
|
2018-04-11 16:53:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Flask-AutoIndex";
|
2020-05-09 10:01:47 +00:00
|
|
|
version = "0.6.6";
|
2018-04-11 16:53:31 +00:00
|
|
|
|
2018-07-06 20:47:40 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 10:01:47 +00:00
|
|
|
sha256 = "ea319f7ccadf68ddf98d940002066278c779323644f9944b300066d50e2effc7";
|
2018-04-11 16:53:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
flask
|
|
|
|
flask-silk
|
|
|
|
future
|
2020-06-03 10:06:39 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.4") [
|
|
|
|
pathlib
|
2018-04-11 16:53:31 +00:00
|
|
|
];
|
|
|
|
|
2020-06-03 10:06:39 +00:00
|
|
|
meta = with lib; {
|
2018-04-11 16:53:31 +00:00
|
|
|
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;
|
2020-11-17 19:41:33 +00:00
|
|
|
maintainers = teams.sage.members;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pythonhosted.org/Flask-AutoIndex/";
|
2018-04-11 16:53:31 +00:00
|
|
|
};
|
|
|
|
}
|