about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-06-03 12:06:39 +0200
committerTimo Kaufmann <timokau@zoho.com>2020-06-03 13:20:31 +0200
commitcaf2c1bb07e32ec1cd7914ed27f992589c8b6da6 (patch)
treeee090676bb8ae592faf102b61847dea1444f43db
parent467ce5a9f45aaf96110b41eb863a56866e1c2c3c (diff)
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
-rw-r--r--pkgs/development/python-modules/flask-autoindex/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/flask-autoindex/default.nix b/pkgs/development/python-modules/flask-autoindex/default.nix
index 48a80f097712c..26b6977116fd3 100644
--- a/pkgs/development/python-modules/flask-autoindex/default.nix
+++ b/pkgs/development/python-modules/flask-autoindex/default.nix
@@ -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.