From caf2c1bb07e32ec1cd7914ed27f992589c8b6da6 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Wed, 3 Jun 2020 12:06:39 +0200 Subject: [PATCH] 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 --- .../python-modules/flask-autoindex/default.nix | 8 ++++++-- 1 file 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 48a80f09771..26b6977116f 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.