pythonPackages.pyfftw: cleanup, add import check
This commit is contained in:
parent
c27e67b9f9
commit
422350e2bd
@ -10,20 +10,18 @@ buildPythonPackage rec {
|
|||||||
sha256 = "60988e823ca75808a26fd79d88dbae1de3699e72a293f812aa4534f8a0a58cb0";
|
sha256 = "60988e823ca75808a26fd79d88dbae1de3699e72a293f812aa4534f8a0a58cb0";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
export LDFLAGS="-L${fftw.out}/lib -L${fftwFloat.out}/lib -L${fftwLongDouble.out}/lib"
|
||||||
|
export CFLAGS="-I${fftw.dev}/include -I${fftwFloat.dev}/include -I${fftwLongDouble.dev}/include"
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ fftw fftwFloat fftwLongDouble];
|
buildInputs = [ fftw fftwFloat fftwLongDouble];
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy scipy cython dask ];
|
propagatedBuildInputs = [ numpy scipy cython dask ];
|
||||||
|
|
||||||
# Tests cannot import pyfftw. pyfftw works fine though.
|
# Tests cannot import pyfftw. pyfftw works fine though.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
pythonImportsCheck = [ "pyfftw" ];
|
||||||
preConfigure = ''
|
|
||||||
export LDFLAGS="-L${fftw.out}/lib -L${fftwFloat.out}/lib -L${fftwLongDouble.out}/lib"
|
|
||||||
export CFLAGS="-I${fftw.dev}/include -I${fftwFloat.dev}/include -I${fftwLongDouble.dev}/include"
|
|
||||||
'';
|
|
||||||
#+ optionalString isDarwin ''
|
|
||||||
# export DYLD_LIBRARY_PATH="${pkgs.fftw.out}/lib"
|
|
||||||
#'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
|
description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
|
||||||
|
Loading…
Reference in New Issue
Block a user