1 {lib, fetchPypi, python, buildPythonPackage, gfortran, nose, pytest, numpy, pybind11}:
4 pybind = pybind11.overridePythonAttrs(oldAttrs: {
5 cmakeFlags = oldAttrs.cmakeFlags ++ [
8 doCheck = false; # Circular test dependency
10 in buildPythonPackage rec {
15 inherit pname version;
16 sha256 = "048vd4c843xaq45yk3kn491gvqnvhp2i9rxhg671ddlh923fpz64";
19 checkInputs = [ nose pytest ];
20 nativeBuildInputs = [ gfortran ];
21 buildInputs = [ numpy.blas pybind ];
22 propagatedBuildInputs = [ numpy ];
24 # Remove tests because of broken wrapper
26 rm scipy/linalg/tests/test_lapack.py
32 sed -i '0,/from numpy.distutils.core/s//import setuptools;from numpy.distutils.core/' setup.py
33 export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES
37 ln -s ${numpy.cfg} site.cfg
43 ${python.interpreter} -c 'import scipy; scipy.test("fast", verbose=10)'
52 setupPyBuildFlags = [ "--fcompiler='gnu95'" ];
54 SCIPY_USE_G77_ABI_WRAPPER = 1;
57 description = "SciPy (pronounced 'Sigh Pie') is open-source software for mathematics, science, and engineering";
58 homepage = "https://www.scipy.org/";
59 license = licenses.bsd3;
60 maintainers = [ maintainers.fridh ];