2017-08-31 15:01:10 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2019-02-14 07:37:25 +00:00
|
|
|
, fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython, dask }:
|
2017-08-31 15:01:10 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-02-06 09:17:08 +00:00
|
|
|
version = "0.12.0";
|
2017-08-31 15:01:10 +01:00
|
|
|
pname = "pyFFTW";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-06 09:17:08 +00:00
|
|
|
sha256 = "60988e823ca75808a26fd79d88dbae1de3699e72a293f812aa4534f8a0a58cb0";
|
2017-08-31 15:01:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ fftw fftwFloat fftwLongDouble];
|
|
|
|
|
2019-02-14 07:37:25 +00:00
|
|
|
propagatedBuildInputs = [ numpy scipy cython dask ];
|
2017-08-31 15:01:10 +01:00
|
|
|
|
|
|
|
# Tests cannot import pyfftw. pyfftw works fine though.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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 stdenv.lib; {
|
|
|
|
description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://hgomersall.github.com/pyFFTW/";
|
2017-08-31 15:01:10 +01:00
|
|
|
license = with licenses; [ bsd2 bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|