python3Packages.numpy: add hypothesis to checkInputs

numpy has added hypothesis as a dependency for running property-based
tests:

https://github.com/numpy/numpy/pull/15189

However, hypothesis is not an input of the derivations. And thus tests
have been failing with:

ERROR .. - ModuleNotFoundError: No module named 'hypothesis'

https://hydra.nixos.org/build/124613306/nixlog/1

This change adds hypothesis to checkInputs, so that tests are run
again.
This commit is contained in:
Daniël de Kok 2020-08-09 08:35:41 +02:00 committed by Frederik Rietdijk
parent 1a3c5b2203
commit 22089bf50a

View file

@ -3,6 +3,7 @@
, python
, buildPythonPackage
, gfortran
, hypothesis
, pytest
, blas
, lapack
@ -67,6 +68,8 @@ in buildPythonPackage rec {
doCheck = !isPyPy; # numpy 1.16+ hits a bug in pypy's ctypes, using either numpy or pypy HEAD fixes this (https://github.com/numpy/numpy/issues/13807)
checkInputs = [ hypothesis ];
checkPhase = ''
runHook preCheck
pushd dist