5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
35 lines
861 B
Nix
35 lines
861 B
Nix
{ buildPythonPackage, isPy3k, fetchFromGitHub, stdenv,
|
|
netcdf, hdf5, libminc, ezminc,
|
|
cython, numpy, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyezminc";
|
|
version = "1.2.01";
|
|
|
|
disabled = isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BIC-MNI";
|
|
repo = "pyezminc";
|
|
rev = "release-${version}";
|
|
sha256 = "13smvramacisbwj8qsl160dnvv6ynngn1jmqwhvy146nmadphyv1";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
buildInputs = [ netcdf hdf5 libminc ezminc ];
|
|
propagatedBuildInputs = [ numpy scipy ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-fpermissive";
|
|
|
|
doCheck = false; # e.g., expects test data in /opt
|
|
|
|
meta = {
|
|
homepage = https://github.com/BIC-MNI/pyezminc;
|
|
description = "Python API for libminc using EZMINC";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
maintainers = with stdenv.lib.maintainers; [ bcdarwin ];
|
|
broken = true;
|
|
};
|
|
}
|