mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
baf0703010
This commit renames the pythondaemon module to match its module name, github name, and pypi name, which makes it easier to find and reference. In order to avoid breaking any external users, I've left an alias with a deprecated warning.
29 lines
810 B
Nix
29 lines
810 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, nose, dnspython
|
|
, chardet, lmtpd, python-daemon, six, jinja2, mock }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "salmon-mail";
|
|
version = "3.0.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e2f5c9cfe95e178813755c2df2f9f7c792246356d7489caa72f06b2553da8cdc";
|
|
};
|
|
|
|
checkInputs = [ nose jinja2 mock ];
|
|
propagatedBuildInputs = [ chardet dnspython lmtpd python-daemon 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 ];
|
|
};
|
|
}
|