python.pkgs.send2trash: configparser is a backport

This commit is contained in:
Frederik Rietdijk 2018-04-05 19:42:43 +02:00
parent 1d981edf81
commit 1bc0727417

View File

@ -4,6 +4,7 @@
, fetchFromGitHub , fetchFromGitHub
, pytest , pytest
, configparser , configparser
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -19,7 +20,7 @@ buildPythonPackage rec {
doCheck = !stdenv.isDarwin; doCheck = !stdenv.isDarwin;
checkPhase = "HOME=. py.test"; checkPhase = "HOME=. py.test";
checkInputs = [ pytest configparser ]; checkInputs = [ pytest ] ++ lib.optional (!isPy3k) configparser;
meta = with lib; { meta = with lib; {
description = "Send file to trash natively under macOS, Windows and Linux"; description = "Send file to trash natively under macOS, Windows and Linux";