caf2c1bb07
pathlib is now required, which is part of the standard library in python
3.4+ but not in python 2.7. Broken by
ec12a5fd1e
39 lines
843 B
Nix
39 lines
843 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, flask
|
|
, flask-silk
|
|
, future
|
|
, pathlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Flask-AutoIndex";
|
|
version = "0.6.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ea319f7ccadf68ddf98d940002066278c779323644f9944b300066d50e2effc7";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
flask
|
|
flask-silk
|
|
future
|
|
] ++ lib.optionals (pythonOlder "3.4") [
|
|
pathlib
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
homepage = "https://pythonhosted.org/Flask-AutoIndex/";
|
|
};
|
|
}
|