From 93305ee919871ea9c1110c39761c71f2e8471fa7 Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Mon, 27 Nov 2017 08:49:33 +0200 Subject: [PATCH 1/2] pythonPackages.lmtpd: init at 6.0.0 --- .../python-modules/lmtpd/default.nix | 19 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/development/python-modules/lmtpd/default.nix diff --git a/pkgs/development/python-modules/lmtpd/default.nix b/pkgs/development/python-modules/lmtpd/default.nix new file mode 100644 index 000000000000..9ad9ddb433f0 --- /dev/null +++ b/pkgs/development/python-modules/lmtpd/default.nix @@ -0,0 +1,19 @@ +{ stdenv, buildPythonPackage, fetchPypi, fetchFromGitHub }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "lmtpd"; + version = "6.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "192d1j9lj9i6f4llwg51817am4jj8pjvlqmkx03spmsay6f832bm"; + }; + + meta = with stdenv.lib; { + homepage = https://github.com/moggers87/lmtpd; + description = "LMTP counterpart to smtpd in the Python standard library"; + license = licenses.mit; + maintainers = with maintainers; [ jluttine ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8f88c7e17ee2..10c5f28f475e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -192,6 +192,8 @@ in { intelhex = callPackage ../development/python-modules/intelhex { }; + lmtpd = callPackage ../development/python-modules/lmtpd { }; + mpi4py = callPackage ../development/python-modules/mpi4py { mpi = pkgs.openmpi; }; From f74f5ed30cddddc1e52ca33edcf0dd94296d2cb6 Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Mon, 27 Nov 2017 08:50:29 +0200 Subject: [PATCH 2/2] pythonPackages.salmon: init at bec795 --- .../python-modules/salmon/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/salmon/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 10c5f28f475e..01a13c12f419 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -306,6 +306,8 @@ in { rhpl = if !isPy3k then callPackage ../development/python-modules/rhpl {} else throw "rhpl not supported for interpreter ${python.executable}"; + salmon = callPackage ../development/python-modules/salmon { }; + simpleeval = callPackage ../development/python-modules/simpleeval { }; sip = callPackage ../development/python-modules/sip { };