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
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, flask
|
||||
, flask-silk
|
||||
, future
|
||||
, pathlib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -19,9 +21,11 @@ buildPythonPackage rec {
|
||||
flask
|
||||
flask-silk
|
||||
future
|
||||
] ++ lib.optionals (pythonOlder "3.4") [
|
||||
pathlib
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "The mod_autoindex for Flask";
|
||||
longDescription = ''
|
||||
Flask-AutoIndex generates an index page for your Flask application automatically.
|
||||
|
Loading…
x
Reference in New Issue
Block a user