nixpkgs/pkgs/development/python-modules/salmon-mail/default.nix

29 lines
811 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, nose, dnspython
, chardet, lmtpd, python-daemon, six, jinja2, mock }:
2017-11-27 07:50:29 +01:00
buildPythonPackage rec {
pname = "salmon-mail";
2019-02-14 08:37:29 +01:00
version = "3.1.0";
2017-11-27 07:50:29 +01:00
src = fetchPypi {
inherit pname version;
2019-02-14 08:37:29 +01:00
sha256 = "cb2f9c3bf2b9f8509453ca8bc06f504350e19488eb9d3d6a4b9e4b8c160b527d";
2017-11-27 07:50:29 +01:00
};
checkInputs = [ nose jinja2 mock ];
propagatedBuildInputs = [ chardet dnspython lmtpd python-daemon six ];
2017-11-27 07:50:29 +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 07:50:29 +01:00
meta = with stdenv.lib; {
homepage = https://salmon-mail.readthedocs.org/;
2017-11-27 07:50:29 +01:00
description = "Pythonic mail application server";
license = licenses.gpl3;
maintainers = with maintainers; [ jluttine ];
};
}