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