2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, nose, dnspython
|
2017-11-27 07:50:29 +01:00
|
|
|
, chardet, lmtpd, pythondaemon, six, jinja2, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-01-11 01:52:45 +01:00
|
|
|
pname = "salmon-mail";
|
2018-07-22 12:20:10 +02:00
|
|
|
version = "3.0.2";
|
2017-11-27 07:50:29 +01:00
|
|
|
|
2018-01-11 01:52:45 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 12:20:10 +02:00
|
|
|
sha256 = "e2f5c9cfe95e178813755c2df2f9f7c792246356d7489caa72f06b2553da8cdc";
|
2017-11-27 07:50:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose jinja2 mock ];
|
2017-12-10 15:27:06 +01:00
|
|
|
propagatedBuildInputs = [ chardet dnspython lmtpd pythondaemon six ];
|
2017-11-27 07:50:29 +01:00
|
|
|
|
2018-06-29 13:20:38 +02: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 07:50:29 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://salmon-mail.readthedocs.org/;
|
|
|
|
description = "Pythonic mail application server";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|