From bc3346cbabb8fffd65f8b46c84225fcb97e9166a Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 4 Nov 2018 15:23:56 +0100 Subject: [PATCH] python.pkgs.simplejson: disable tests with python 3 --- pkgs/development/python-modules/simplejson/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/simplejson/default.nix b/pkgs/development/python-modules/simplejson/default.nix index 2099b00ba96..4adf7083a0b 100644 --- a/pkgs/development/python-modules/simplejson/default.nix +++ b/pkgs/development/python-modules/simplejson/default.nix @@ -2,6 +2,8 @@ , buildPythonPackage , fetchPypi , stdenv +, isPy3k +, pytest }: buildPythonPackage rec { @@ -14,6 +16,14 @@ buildPythonPackage rec { sha256 = "b1f329139ba647a9548aa05fb95d046b4a677643070dc2afc05fa2e975d09ca5"; }; + # Package does not need pytest, but its a bit easier debugging. + checkInputs = [ pytest ]; + # Ignore warnings because test does not expect them in stderr + # See https://github.com/simplejson/simplejson/issues/241 + checkPhase = '' + PYTHONWARNINGS="ignore" pytest simplejson/tests + ''; + meta = { description = "A simple, fast, extensible JSON encoder/decoder for Python"; longDescription = ''