From ed8400bb9a59f267185d2d09b8f47d270a44ee99 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 11 Nov 2018 08:55:35 +0100 Subject: [PATCH] pythonPackages.cryptography: ignore pytest warnings The test suite was generating a lot of warnings, causing the hydra build to fail. Unfortunately, PYTHONWARNINGS env var is completely ignored. --- pkgs/development/python-modules/cryptography/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 2771e74e1340..603f92336c05 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -51,6 +51,10 @@ buildPythonPackage rec { hypothesis ]; + checkPhase = '' + py.test --disable-pytest-warnings tests + ''; + # The test assumes that if we're on Sierra or higher, that we use `getentropy`, but for binary # compatibility with pre-Sierra for binary caches, we hide that symbol so the library doesn't # use it. This boils down to them checking compatibility with `getentropy` in two different places,