Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 28 lines 810 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, nose, dnspython 2, chardet, lmtpd, python-daemon, six, jinja2, mock }: 3 4buildPythonPackage rec { 5 pname = "salmon-mail"; 6 version = "3.1.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "cb2f9c3bf2b9f8509453ca8bc06f504350e19488eb9d3d6a4b9e4b8c160b527d"; 11 }; 12 13 checkInputs = [ nose jinja2 mock ]; 14 propagatedBuildInputs = [ chardet dnspython lmtpd python-daemon six ]; 15 16 # The tests use salmon executable installed by salmon itself so we need to add 17 # that to PATH 18 checkPhase = '' 19 PATH=$out/bin:$PATH nosetests . 20 ''; 21 22 meta = with stdenv.lib; { 23 homepage = http://salmon-mail.readthedocs.org/; 24 description = "Pythonic mail application server"; 25 license = licenses.gpl3; 26 maintainers = with maintainers; [ jluttine ]; 27 }; 28}