Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pyfftw / default.nix
blob96e807f8eba3c12f2e63d2969facffa067693dd1
1 { lib, buildPythonPackage, fetchPypi
2 , fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython, dask }:
4 buildPythonPackage rec {
5   version = "0.12.0";
6   pname = "pyFFTW";
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "60988e823ca75808a26fd79d88dbae1de3699e72a293f812aa4534f8a0a58cb0";
11   };
13   preConfigure = ''
14     export LDFLAGS="-L${fftw.out}/lib -L${fftwFloat.out}/lib -L${fftwLongDouble.out}/lib"
15     export CFLAGS="-I${fftw.dev}/include -I${fftwFloat.dev}/include -I${fftwLongDouble.dev}/include"
16   '';
18   buildInputs = [ fftw fftwFloat fftwLongDouble];
20   propagatedBuildInputs = [ numpy scipy cython dask ];
22   # Tests cannot import pyfftw. pyfftw works fine though.
23   doCheck = false;
24   pythonImportsCheck = [ "pyfftw" ];
26   meta = with lib; {
27     description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
28     homepage = "http://hgomersall.github.com/pyFFTW/";
29     license = with licenses; [ bsd2 bsd3 ];
30     maintainers = with maintainers; [ fridh ];
31   };