From 8dbd553792dcaf5074c47367ed6740f516862bad Mon Sep 17 00:00:00 2001 From: Lucas Savva Date: Tue, 13 Apr 2021 00:31:53 +0100 Subject: [PATCH] mailman-web-unstable: 2019-09-29 -> 2021-04-10 (#119135) Co-authored-by: Sandro --- nixos/modules/services/mail/mailman.nix | 3 ++- pkgs/servers/mail/mailman/web.nix | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index 832b496f31c9..a5b17be349ce 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -263,7 +263,8 @@ in { # settings_local.json is loaded. os.environ["SECRET_KEY"] = "" - from mailman_web.settings import * + from mailman_web.settings.base import * + from mailman_web.settings.mailman import * import json diff --git a/pkgs/servers/mail/mailman/web.nix b/pkgs/servers/mail/mailman/web.nix index 53fdf851cfe8..2f1e9cd251e7 100644 --- a/pkgs/servers/mail/mailman/web.nix +++ b/pkgs/servers/mail/mailman/web.nix @@ -1,16 +1,16 @@ { buildPythonPackage, lib, fetchgit, isPy3k -, git, makeWrapper, sassc, hyperkitty, postorius, whoosh +, git, makeWrapper, sassc, hyperkitty, postorius, whoosh, setuptools-scm }: buildPythonPackage rec { - pname = "mailman-web-unstable"; - version = "2019-09-29"; + pname = "mailman-web"; + version = "unstable-2021-04-10"; disabled = !isPy3k; src = fetchgit { url = "https://gitlab.com/mailman/mailman-web"; - rev = "d17203b4d6bdc71c2b40891757f57a32f3de53d5"; - sha256 = "124cxr4vfi1ibgxygk4l74q4fysx0a6pga1kk9p5wq2yvzwg9z3n"; + rev = "19a7abe27dd3bc39c0250440de073f0adecd4da1"; + sha256 = "0h25140n2jaisl0ri5x7gdmbypiys8vlq8dql1zmaxvq459ybxkn"; leaveDotGit = true; }; @@ -25,7 +25,7 @@ buildPythonPackage rec { sed -i '/^ Django/d' setup.cfg ''; - nativeBuildInputs = [ git makeWrapper ]; + nativeBuildInputs = [ git setuptools-scm makeWrapper ]; propagatedBuildInputs = [ hyperkitty postorius whoosh ]; # Tries to check runtime configuration. @@ -38,7 +38,7 @@ buildPythonPackage rec { meta = with lib; { description = "Django project for Mailman 3 web interface"; - license = licenses.gpl3; - maintainers = with maintainers; [ peti qyliss ]; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ peti qyliss m1cr0man ]; }; }