summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyezminc/default.nix
blob: 614a1555cbeff32baead6a7a5a2d056cb7d3a17f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ 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 ];
  };
}