From 482a0813398a19c8907e5bda8518d614bebb9f8f Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 24 Dec 2019 09:34:15 -0800 Subject: [PATCH] pythonPackages.magic-wormhole-mailbox-server: disable python2 tests unable to load zope.interface module --- .../magic-wormhole-mailbox-server/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix b/pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix index e2662e7e5dd7..28d09672584c 100644 --- a/pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix +++ b/pkgs/development/python-modules/magic-wormhole-mailbox-server/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildPythonPackage, fetchPypi, six, attrs, twisted, pyopenssl, service-identity, autobahn, treq, mock }: +{ stdenv, buildPythonPackage, fetchPypi, isPy27, six, attrs, twisted, pyopenssl, service-identity, autobahn, treq, mock, pytest }: buildPythonPackage rec { version = "0.4.1"; @@ -10,10 +10,12 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ six attrs twisted pyopenssl service-identity autobahn ]; - checkInputs = [ treq mock ]; + # zope.interface import issue + doCheck = !isPy27; + checkInputs = [ treq mock pytest ]; checkPhase = '' - trial wormhole_mailbox_server + pytest ''; meta = with stdenv.lib; {