2019-01-17 20:25:35 +01:00
|
|
|
{ lib
|
2018-01-16 14:28:55 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-01-17 20:25:35 +01:00
|
|
|
, isPy3k
|
2019-12-22 19:44:49 +01:00
|
|
|
, isPy27
|
2019-01-17 20:25:35 +01:00
|
|
|
, bz2file
|
|
|
|
, mock
|
2019-08-06 04:08:14 +02:00
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
, six
|
2018-01-16 14:28:55 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nibabel";
|
2019-12-19 20:31:16 +01:00
|
|
|
version = "3.0.0";
|
2019-12-22 19:44:49 +01:00
|
|
|
disabled = isPy27;
|
2018-01-16 14:28:55 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 20:31:16 +01:00
|
|
|
sha256 = "0f5bc325c9cb203c6f0ab876ba1a5ada811284bb3a4c5d063eeaafaefbad873d";
|
2018-01-16 14:28:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
six
|
2019-01-17 20:25:35 +01:00
|
|
|
] ++ lib.optional (!isPy3k) bz2file;
|
|
|
|
|
|
|
|
checkInputs = [ nose mock ];
|
2018-01-16 14:28:55 +01:00
|
|
|
|
2019-08-06 04:08:14 +02:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
2019-01-17 20:25:35 +01:00
|
|
|
'';
|
2018-01-16 14:28:55 +01:00
|
|
|
|
2019-01-17 20:25:35 +01:00
|
|
|
meta = with lib; {
|
2019-04-22 10:14:28 +02:00
|
|
|
homepage = https://nipy.org/nibabel/;
|
2018-01-16 14:28:55 +01:00
|
|
|
description = "Access a multitude of neuroimaging data formats";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ashgillman ];
|
|
|
|
};
|
|
|
|
}
|