4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ lib, stdenv, buildPythonPackage, fetchPypi
|
|
, fftw, fftwFloat, fftwLongDouble, numpy, scipy, cython, dask }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.12.0";
|
|
pname = "pyFFTW";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "60988e823ca75808a26fd79d88dbae1de3699e72a293f812aa4534f8a0a58cb0";
|
|
};
|
|
|
|
buildInputs = [ fftw fftwFloat fftwLongDouble];
|
|
|
|
propagatedBuildInputs = [ numpy scipy cython dask ];
|
|
|
|
# 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 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 ];
|
|
};
|
|
}
|