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
|
2020-07-23 00:06:19 +00:00
|
|
|
, packaging
|
2022-03-08 20:34:33 +00:00
|
|
|
, pytestCheckHook
|
2020-07-05 21:11:32 +00:00
|
|
|
, nose
|
2019-08-06 02:08:14 +00: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";
|
2022-09-01 03:44:51 +00:00
|
|
|
version = "4.0.2";
|
2019-12-22 18:44:49 +00:00
|
|
|
disabled = isPy27;
|
2018-01-16 13:28:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-01 03:44:51 +00:00
|
|
|
sha256 = "sha256-RcSbU0k1G0X2wEWpGqArTw02dob/MoRjLvlaxluTB4Y=";
|
2018-01-16 13:28:55 +00:00
|
|
|
};
|
|
|
|
|
2020-07-23 00:06:19 +00:00
|
|
|
propagatedBuildInputs = [ numpy scipy h5py packaging pydicom ];
|
2019-01-17 19:25:35 +00:00
|
|
|
|
2022-03-08 20:34:33 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-01-16 13:28:55 +00:00
|
|
|
|
2022-03-08 20:34:33 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/nipy/nibabel/issues/951
|
|
|
|
"test_filenames"
|
|
|
|
];
|
2018-01-16 13:28:55 +00:00
|
|
|
|
2019-01-17 19:25:35 +00:00
|
|
|
meta = with lib; {
|
2020-04-07 18:12:09 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|