2018-01-11 00:52:45 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, nose, dnspython
|
2017-11-27 06:50:29 +00:00
|
|
|
, chardet, lmtpd, pythondaemon, six, jinja2, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-01-11 00:52:45 +00:00
|
|
|
pname = "salmon-mail";
|
2018-06-12 17:47:06 +01:00
|
|
|
version = "3.0.1";
|
2017-11-27 06:50:29 +00:00
|
|
|
|
2018-01-11 00:52:45 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 17:47:06 +01:00
|
|
|
sha256 = "452557172901d6227a325bbc72fcf61002a53c2342d935457b729303dce71f7e";
|
2017-11-27 06:50:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose jinja2 mock ];
|
2017-12-10 14:27:06 +00:00
|
|
|
propagatedBuildInputs = [ chardet dnspython lmtpd pythondaemon six ];
|
2017-11-27 06:50:29 +00:00
|
|
|
|
2018-06-29 12:20:38 +01:00
|
|
|
# The tests use salmon executable installed by salmon itself so we need to add
|
|
|
|
# that to PATH
|
|
|
|
checkPhase = ''
|
|
|
|
PATH=$out/bin:$PATH nosetests .
|
|
|
|
'';
|
|
|
|
|
2017-11-27 06:50:29 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://salmon-mail.readthedocs.org/;
|
|
|
|
description = "Pythonic mail application server";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|