python3.pkgs.mailman*: check isPy3k inside package

This commit is contained in:
Alyssa Ross 2020-01-10 20:19:14 +00:00
parent 3e26640352
commit 126ff4d97e
5 changed files with 12 additions and 8 deletions

View File

@ -1,8 +1,9 @@
{ stdenv, buildPythonPackage, fetchPypi, six, httplib2, requests }:
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, six, httplib2, requests }:
buildPythonPackage rec {
pname = "mailmanclient";
version = "3.3.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, alembic, aiosmtpd, dnspython
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, alembic, aiosmtpd, dnspython
, flufl_bounce, flufl_i18n, flufl_lock, lazr_config, lazr_delegates, passlib
, requests, zope_configuration, click, falcon, importlib-resources
, zope_component, lynx, postfix, authheaders, gunicorn
@ -7,6 +7,7 @@
buildPythonPackage rec {
pname = "mailman";
version = "3.3.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi, isort, coverage, mock
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, isort, coverage, mock
, robot-detection, django_extensions, rjsmin, cssmin, django-mailman3
, django-haystack, flufl_lock, networkx, dateutil, defusedxml
, django-paintstore, djangorestframework, django, django-q
@ -8,6 +8,7 @@
buildPythonPackage rec {
pname = "HyperKitty";
version = "1.3.2";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;

View File

@ -1,4 +1,4 @@
{ stdenv, python, hyperkitty, postorius, buildPythonPackage
{ stdenv, python, hyperkitty, postorius, buildPythonPackage, isPy3k
, serverEMail ? "postmaster@example.org"
, archiverKey ? "SecretArchiverAPIKey"
, allowedHosts ? []
@ -17,6 +17,7 @@ in
buildPythonPackage {
name = "mailman-web-0";
disabled = !isPy3k;
propagatedBuildInputs = [ hyperkitty postorius ];

View File

@ -819,11 +819,11 @@ in {
mail-parser = callPackage ../development/python-modules/mail-parser { };
mailman = disabledIf (!isPy3k) (callPackage ../servers/mail/mailman { });
mailman = callPackage ../servers/mail/mailman { };
mailman-web = disabledIf (!isPy3k) (callPackage ../servers/mail/mailman/web.nix { });
mailman-web = callPackage ../servers/mail/mailman/web.nix { };
mailmanclient = disabledIf (!isPy3k) (callPackage ../development/python-modules/mailmanclient { });
mailmanclient = callPackage ../development/python-modules/mailmanclient { };
mailman-hyperkitty = callPackage ../development/python-modules/mailman-hyperkitty { };
@ -3055,7 +3055,7 @@ in {
sunpy = callPackage ../development/python-modules/sunpy { };
hyperkitty = disabledIf (!isPy3k) (callPackage ../servers/mail/mailman/hyperkitty.nix { });
hyperkitty = callPackage ../servers/mail/mailman/hyperkitty.nix { };
robot-detection = callPackage ../development/python-modules/robot-detection {};