2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, pytest
|
2020-07-18 16:06:22 +00:00
|
|
|
, nose
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, h5py
|
|
|
|
, pydicom
|
|
|
|
, scipy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nibabel";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "3.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1kir9g7kmy2qygyzczx8nj4b0sc6jjvqy0ssm39bxzqsr1vzzvxm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy scipy h5py pydicom ];
|
|
|
|
|
|
|
|
checkInputs = [ nose pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-07-18 16:06:22 +00:00
|
|
|
pytest
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://nipy.org/nibabel";
|
|
|
|
description = "Access a multitude of neuroimaging data formats";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ashgillman ];
|
|
|
|
platforms = platforms.x86_64; # https://github.com/nipy/nibabel/issues/861
|
|
|
|
};
|
|
|
|
}
|