Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 29 lines 818 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.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "0ddd9nwdmiibk3jaampznm8nai5b7zalp0f8c65l71674300bqnw"; 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 = https://salmon-mail.readthedocs.org/; 24 description = "Pythonic mail application server"; 25 license = licenses.gpl3; 26 maintainers = with maintainers; [ jluttine ]; 27 broken = true; 28 }; 29}