2019-01-17 19:25:35 +00:00
|
|
|
{ lib
|
2018-01-16 13:28:55 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-12-22 18:44:49 +00:00
|
|
|
, isPy27
|
2019-08-06 03:08:14 +01:00
|
|
|
, nose
|
2020-01-27 16:00:21 +00:00
|
|
|
, pytest
|
2019-08-06 03:08:14 +01:00
|
|
|
, numpy
|
2020-01-27 16:00:21 +00:00
|
|
|
, h5py
|
|
|
|
, pydicom
|
|
|
|
, scipy
|
2018-01-16 13:28:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nibabel";
|
2020-01-27 16:00:21 +00:00
|
|
|
version = "3.0.1";
|
2019-12-22 18:44:49 +00:00
|
|
|
disabled = isPy27;
|
2018-01-16 13:28:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-01-27 16:00:21 +00:00
|
|
|
sha256 = "08nlny8vzkpjpyb0q943cq57m2s4wndm86chvd3d5qvar9z6b36k";
|
2018-01-16 13:28:55 +00:00
|
|
|
};
|
|
|
|
|
2020-01-27 16:00:21 +00:00
|
|
|
propagatedBuildInputs = [ numpy scipy h5py pydicom ];
|
2019-01-17 19:25:35 +00:00
|
|
|
|
2020-01-27 16:00:21 +00:00
|
|
|
checkInputs = [ nose pytest ];
|
2018-01-16 13:28:55 +00:00
|
|
|
|
2019-08-06 03:08:14 +01:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
2019-01-17 19:25:35 +00:00
|
|
|
'';
|
2018-01-16 13:28:55 +00:00
|
|
|
|
2019-01-17 19:25:35 +00:00
|
|
|
meta = with lib; {
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = https://nipy.org/nibabel/;
|
2018-01-16 13:28:55 +00:00
|
|
|
description = "Access a multitude of neuroimaging data formats";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ashgillman ];
|
2020-01-27 16:00:21 +00:00
|
|
|
platforms = platforms.x86_64; # https://github.com/nipy/nibabel/issues/861
|
2018-01-16 13:28:55 +00:00
|
|
|
};
|
|
|
|
}
|