git.iko.soy/typeable/nixpkgs
on master help sign in
numpy: enable on pypy (without tests)

Some tests fail according to PyPy docs: http://doc.pypy.org/en/latest/faq.html#should-i-install-numpy-or-numpypy

commitf38fbf853f7043ba9cb7b25785f3bf3c221be019 authorleo60228 <iakornfeld@gmail.com> dateThu 10 Jan 2019, 14:09 (8 years ago) parentb9ea613
1 file changed+3−1
pkgs/development/python-modules/numpy/default.nix+3−1
pkgs/development/python-modules/numpy/default.nix+3−1
@@ -1,4 +1,4 @@
1−{ lib, fetchPypi, python, buildPythonPackage, gfortran, pytest, blas, writeTextFile }:
1+{ lib, fetchPypi, python, buildPythonPackage, gfortran, pytest, blas, writeTextFile, isPyPy }:
22
33let
44 blasImplementation = lib.nameFromURL blas.name "-";
@@ -45,6 +45,8 @@ in buildPythonPackage rec {
4545
4646 enableParallelBuilding = true;
4747
48+ 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)
49+
4850 checkPhase = ''
4951 runHook preCheck
5052 pushd dist