summary refs log tree commit diff
path: root/pkgs/development/python-modules/nibabel/default.nix
blob: f118e4d5a430a29bdec3256f4618e9e938255718 (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
34
35
36
37
38
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, bz2file
, mock
, nose
, numpy
, six
}:

buildPythonPackage rec {
  pname = "nibabel";
  version = "2.5.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "83ecac4773ece02c49c364d99b465644c17cc66f1719560117e74991d9eb566b";
  };

  propagatedBuildInputs = [
    numpy
    six
  ] ++ lib.optional (!isPy3k) bz2file;

  checkInputs = [ nose mock ];

  checkPhase = ''
    nosetests
  '';

  meta = with lib; {
    homepage = https://nipy.org/nibabel/;
    description = "Access a multitude of neuroimaging data formats";
    license = licenses.mit;
    maintainers = with maintainers; [ ashgillman ];
  };
}