From 1bc0727417cda354681449c7f85a8cea1b9f1f64 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 5 Apr 2018 19:42:43 +0200 Subject: [PATCH] python.pkgs.send2trash: configparser is a backport --- pkgs/development/python-modules/send2trash/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/send2trash/default.nix b/pkgs/development/python-modules/send2trash/default.nix index 7ea0705f815..35115a45716 100644 --- a/pkgs/development/python-modules/send2trash/default.nix +++ b/pkgs/development/python-modules/send2trash/default.nix @@ -4,6 +4,7 @@ , fetchFromGitHub , pytest , configparser +, isPy3k }: buildPythonPackage rec { @@ -19,7 +20,7 @@ buildPythonPackage rec { doCheck = !stdenv.isDarwin; checkPhase = "HOME=. py.test"; - checkInputs = [ pytest configparser ]; + checkInputs = [ pytest ] ++ lib.optional (!isPy3k) configparser; meta = with lib; { description = "Send file to trash natively under macOS, Windows and Linux";