diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-11-11 08:55:35 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-11-11 08:55:35 +0100 |
commit | ed8400bb9a59f267185d2d09b8f47d270a44ee99 (patch) | |
tree | 23552a134949126efade4d34e57a982adfe3c75c /pkgs/development/python-modules/cryptography | |
parent | 53d00c335194e01f536b4a9ff024c8b841e9d334 (diff) | |
download | nixpkgs-ed8400bb9a59f267185d2d09b8f47d270a44ee99.tar nixpkgs-ed8400bb9a59f267185d2d09b8f47d270a44ee99.tar.gz nixpkgs-ed8400bb9a59f267185d2d09b8f47d270a44ee99.tar.bz2 nixpkgs-ed8400bb9a59f267185d2d09b8f47d270a44ee99.tar.lz nixpkgs-ed8400bb9a59f267185d2d09b8f47d270a44ee99.tar.xz nixpkgs-ed8400bb9a59f267185d2d09b8f47d270a44ee99.tar.zst nixpkgs-ed8400bb9a59f267185d2d09b8f47d270a44ee99.zip |
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.
Diffstat (limited to 'pkgs/development/python-modules/cryptography')
-rw-r--r-- | pkgs/development/python-modules/cryptography/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 2771e74e134..603f92336c0 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, |