nixpkgs/pkgs/development/python-modules/salmon-mail/default.nix
Frederik Rietdijk 309cfde81c
Merge pull request #44014 from jluttine/salmon-3.0.2
pythonPackages.salmon-mail: 3.0.1 -> 3.0.2
2018-07-23 16:13:36 +02:00

28 lines
796 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, nose, dnspython
, chardet, lmtpd, pythondaemon, six, jinja2, mock }:
buildPythonPackage rec {
pname = "salmon-mail";
version = "3.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "1p4cv99jaszhfam9qj6parij94n7yzwz4bawfl9qh5syx77wkxg2";
};
checkInputs = [ nose jinja2 mock ];
propagatedBuildInputs = [ chardet dnspython lmtpd pythondaemon six ];
# The tests use salmon executable installed by salmon itself so we need to add
# that to PATH
checkPhase = ''
PATH=$out/bin:$PATH nosetests .
'';
meta = with stdenv.lib; {
homepage = http://salmon-mail.readthedocs.org/;
description = "Pythonic mail application server";
license = licenses.gpl3;
maintainers = with maintainers; [ jluttine ];
};
}