From a4765957fd2735df5f8f559f7067c88b3b6d7755 Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Fri, 29 Jun 2018 14:20:38 +0300 Subject: [PATCH] pythonPackages.salmon-mail: fix tests (#42753) --- pkgs/development/python-modules/salmon-mail/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/salmon-mail/default.nix b/pkgs/development/python-modules/salmon-mail/default.nix index 19ddbca4d03..7b06c2277cd 100644 --- a/pkgs/development/python-modules/salmon-mail/default.nix +++ b/pkgs/development/python-modules/salmon-mail/default.nix @@ -14,6 +14,12 @@ buildPythonPackage rec { checkInputs = [ nose jinja2 mock ]; propagatedBuildInputs = [ chardet dnspython lmtpd pythondaemon six ]; + # The tests use salmon executable installed by salmon itself so we need to add + # that to PATH + checkPhase = '' + PATH=$out/bin:$PATH nosetests . + ''; + meta = with stdenv.lib; { homepage = http://salmon-mail.readthedocs.org/; description = "Pythonic mail application server";