python2.pkgs.flask-autoindex: fix build
pathlib is now required, which is part of the standard library in python 3.4+ but not in python 2.7. Broken by ec12a5fd1e9379b359871efadeb245e8734f59a8
This commit is contained in:
parent
467ce5a9f4
commit
caf2c1bb07
@ -1,9 +1,11 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, flask
|
, flask
|
||||||
, flask-silk
|
, flask-silk
|
||||||
, future
|
, future
|
||||||
|
, pathlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -19,9 +21,11 @@ buildPythonPackage rec {
|
|||||||
flask
|
flask
|
||||||
flask-silk
|
flask-silk
|
||||||
future
|
future
|
||||||
|
] ++ lib.optionals (pythonOlder "3.4") [
|
||||||
|
pathlib
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "The mod_autoindex for Flask";
|
description = "The mod_autoindex for Flask";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Flask-AutoIndex generates an index page for your Flask application automatically.
|
Flask-AutoIndex generates an index page for your Flask application automatically.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user