1 { stdenv, lib, buildPythonPackage, fetchPypi, dnspython, chardet, lmtpd
2 , python-daemon, six, jinja2, mock, click }:
4 buildPythonPackage rec {
10 sha256 = "0q2m6xri1b7qv46rqpv2qfdgk2jvswj8lpaacnxwjna3m685fhfx";
13 nativeCheckInputs = [ jinja2 mock ];
14 propagatedBuildInputs = [ chardet dnspython lmtpd python-daemon six click ];
16 # Darwin tests fail without this. See:
17 # https://github.com/NixOS/nixpkgs/pull/82166#discussion_r399909846
18 __darwinAllowLocalNetworking = true;
20 # The tests use salmon executable installed by salmon itself so we need to add
23 # tests fail and pytest is not supported
24 rm tests/server_tests.py
25 PATH=$out/bin:$PATH python setup.py test
29 broken = stdenv.isDarwin;
30 homepage = "https://salmon-mail.readthedocs.org/";
31 description = "Pythonic mail application server";
32 license = licenses.gpl3Only;
33 maintainers = with maintainers; [ jluttine ];