2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, nose, dnspython
|
2018-10-04 21:51:46 -04:00
|
|
|
, chardet, lmtpd, python-daemon, six, jinja2, mock }:
|
2017-11-27 08:50:29 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-01-11 02:52:45 +02:00
|
|
|
pname = "salmon-mail";
|
2019-05-30 12:47:50 +03:00
|
|
|
version = "3.1.1";
|
2017-11-27 08:50:29 +02:00
|
|
|
|
2018-01-11 02:52:45 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-05-30 12:47:50 +03:00
|
|
|
sha256 = "0ddd9nwdmiibk3jaampznm8nai5b7zalp0f8c65l71674300bqnw";
|
2017-11-27 08:50:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose jinja2 mock ];
|
2018-10-04 21:51:46 -04:00
|
|
|
propagatedBuildInputs = [ chardet dnspython lmtpd python-daemon six ];
|
2017-11-27 08:50:29 +02:00
|
|
|
|
2018-06-29 14:20:38 +03: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 08:50:29 +02:00
|
|
|
meta = with stdenv.lib; {
|
2019-04-22 10:24:21 +02:00
|
|
|
homepage = https://salmon-mail.readthedocs.org/;
|
2017-11-27 08:50:29 +02:00
|
|
|
description = "Pythonic mail application server";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|