anchor.diff:  
     checkInputs = [ nose pytest pytest-xdist ];
   
  -  # Remove tests because of broken wrapper
  -  prePatch = ''
  -    rm scipy/linalg/tests/test_lapack.py
  -  '';
  -
     doCheck = !(stdenv.isx86_64 && stdenv.isDarwin);
   
     preConfigure = ''
       sed -i '0,/from numpy.distutils.core/s//import setuptools;from numpy.distutils.core/' setup.py
       export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES
  -  '';
  -
  -  preBuild = ''
  -    ln -s ${numpy.cfg} site.cfg
     '';
   
     # disable stackprotector on aarch64-darwin for now
  
positive.code: , buildPythonPackage
  , cython
  , gfortran
  , pythran
  , nose
  , pytest
  , pytest-xdist
  
negative.code: buildPythonPackage rec {
    pname = "scipy";
    version = "1.9.1";
    format = "pyproject";
  
    src = fetchPypi {
      inherit pname version;
      sha256 = "sha256-JtKMRokA5tX9s30oEqtG2wzNIsY7qglQV4cfqjpJi8k=";
    };
  
    nativeBuildInputs = [ cython gfortran meson-python pythran pkg-config wheel ];
  
    buildInputs = [ numpy.blas pybind11 ];
  
  