Advertisement
Guest User

pyFFTW Nix

a guest
Nov 30th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. pyFFTW = buildPythonPackage rec {
  2. name = "pyFFTW-${version}";
  3. version = "0.9.2";
  4.  
  5. src = pkgs.fetchurl {
  6. url = "https://pypi.python.org/packages/source/p/pyFFTW/${name}.tar.gz";
  7. sha256 = "f6bbb6afa93085409ab24885a1a3cdb8909f095a142f4d49e346f2bd1b789074";
  8. };
  9.  
  10. buildInputs = [ pkgs.fftw ];
  11.  
  12. propagatedBuildInputs = with self; [ numpy scipy ];
  13.  
  14. preConfigure = ''
  15. export LDFLAGS="-L${pkgs.fftw}/include"
  16. export CFLAGS="-I${pkgs.fftw}/include"
  17. '';
  18. #+ optionalString isDarwin ''
  19. # export DYLD_LIBRARY_PATH="${pkgs.fftw}/lib"
  20. #'';
  21.  
  22. meta = {
  23. description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
  24. homepage = http://hgomersall.github.com/pyFFTW/;
  25. license = with licenses; [ bsd2 bsd3 ];
  26. maintainer = with maintainers; [ fridh ];
  27. };
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement