summary refs log tree commit diff
path: root/pkgs/development/python-modules/salmon
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2017-11-27 08:50:29 +0200
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2017-12-06 09:41:13 +0200
commitf74f5ed30cddddc1e52ca33edcf0dd94296d2cb6 (patch)
tree893b92c4836c5d2496102ca52b80b4edbb7b137c /pkgs/development/python-modules/salmon
parent93305ee919871ea9c1110c39761c71f2e8471fa7 (diff)
downloadnixlib-f74f5ed30cddddc1e52ca33edcf0dd94296d2cb6.tar
nixlib-f74f5ed30cddddc1e52ca33edcf0dd94296d2cb6.tar.gz
nixlib-f74f5ed30cddddc1e52ca33edcf0dd94296d2cb6.tar.bz2
nixlib-f74f5ed30cddddc1e52ca33edcf0dd94296d2cb6.tar.lz
nixlib-f74f5ed30cddddc1e52ca33edcf0dd94296d2cb6.tar.xz
nixlib-f74f5ed30cddddc1e52ca33edcf0dd94296d2cb6.tar.zst
nixlib-f74f5ed30cddddc1e52ca33edcf0dd94296d2cb6.zip
pythonPackages.salmon: init at bec795
Diffstat (limited to 'pkgs/development/python-modules/salmon')
-rw-r--r--pkgs/development/python-modules/salmon/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/salmon/default.nix b/pkgs/development/python-modules/salmon/default.nix
new file mode 100644
index 000000000000..2169689f3d47
--- /dev/null
+++ b/pkgs/development/python-modules/salmon/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder, nose, dns
+,  chardet, lmtpd, pythondaemon, six, jinja2, mock }:
+
+buildPythonPackage rec {
+  pname = "salmon";
+  # NOTE: The latest release version 2 is over 3 years old. So let's use some
+  # recent commit from master. There will be a new release at some point, then
+  # one can change this to use PyPI. See:
+  # https://github.com/moggers87/salmon/issues/52
+  version = "bec795cdab744be4f103d8e35584dfee622ddab2";
+  name = "${pname}-${version}";
+
+  src = fetchFromGitHub {
+    owner = "moggers87";
+    repo = "salmon";
+    rev = version;
+    sha256 = "0nx8pyxy7n42nsqqvhd85ycm1i5wlacsi7lwb4rrs9d416bpd300";
+  };
+
+  checkInputs = [ nose jinja2 mock ];
+  propagatedBuildInputs = [ chardet dns lmtpd pythondaemon six ];
+
+  meta = with stdenv.lib; {
+    homepage = http://salmon-mail.readthedocs.org/;
+    description = "Pythonic mail application server";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ jluttine ];
+  };
+}