pythonPackages.pyfftw : move to separate expression
This commit is contained in:
parent
64fb881757
commit
4f43682759
35
pkgs/development/python-modules/pyfftw/default.nix
Normal file
35
pkgs/development/python-modules/pyfftw/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ stdenv, buildPythonPackage, fetchPypi
|
||||||
|
, fftw, fftwFloat, fftwLongDouble, numpy, scipy }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "0.10.4";
|
||||||
|
pname = "pyFFTW";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "739b436b7c0aeddf99a48749380260364d2dc027cf1d5f63dafb5f50068ede1a";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ fftw fftwFloat fftwLongDouble];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ numpy scipy ];
|
||||||
|
|
||||||
|
# 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";
|
||||||
|
homepage = http://hgomersall.github.com/pyFFTW/;
|
||||||
|
license = with licenses; [ bsd2 bsd3 ];
|
||||||
|
maintainers = with maintainers; [ fridh ];
|
||||||
|
};
|
||||||
|
}
|
@ -17778,24 +17778,7 @@ in {
|
|||||||
|
|
||||||
pyfeed = callPackage ../development/python-modules/pyfeed { };
|
pyfeed = callPackage ../development/python-modules/pyfeed { };
|
||||||
|
|
||||||
meta = {
|
pyfftw = callPackage ../development/python-modules/pyfftw { };
|
||||||
description = "A pythonic wrapper around FFTW, the FFT library, presenting a unified interface for all the supported transforms";
|
|
||||||
homepage = http://hgomersall.github.com/pyFFTW/;
|
|
||||||
license = with licenses; [ bsd2 bsd3 ];
|
|
||||||
maintainers = with maintainers; [ fridh ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pyfiglet = buildPythonPackage rec {
|
|
||||||
name = "pyfiglet-${version}";
|
|
||||||
version = "0.7.5";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/p/pyfiglet/${name}.tar.gz";
|
|
||||||
sha256 = "04jy4182hn5xfs6jf432gxclfj1rhssd7bsf0b4gymrjzkhr8qa4";
|
|
||||||
};
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "FIGlet in pure Python";
|
description = "FIGlet in pure Python";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user