1{ stdenv, buildPythonPackage, fetchPypi, nose, dnspython
2, chardet, lmtpd, pythondaemon, six, jinja2, mock }:
3
4buildPythonPackage rec {
5 pname = "salmon-mail";
6 version = "3.0.2";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "e2f5c9cfe95e178813755c2df2f9f7c792246356d7489caa72f06b2553da8cdc";
11 };
12
13 checkInputs = [ nose jinja2 mock ];
14 propagatedBuildInputs = [ chardet dnspython lmtpd pythondaemon six ];
15
16 # The tests use salmon executable installed by salmon itself so we need to add
17 # that to PATH
18 checkPhase = ''
19 PATH=$out/bin:$PATH nosetests .
20 '';
21
22 meta = with stdenv.lib; {
23 homepage = http://salmon-mail.readthedocs.org/;
24 description = "Pythonic mail application server";
25 license = licenses.gpl3;
26 maintainers = with maintainers; [ jluttine ];
27 };
28}