2019-01-17 19:25:35 +00:00
|
|
|
{ lib
|
2018-01-16 13:28:55 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-01-17 19:25:35 +00:00
|
|
|
, isPy3k
|
|
|
|
, bz2file
|
|
|
|
, mock
|
2019-08-06 03:08:14 +01:00
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
, six
|
2018-01-16 13:28:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nibabel";
|
2019-10-16 10:43:10 +01:00
|
|
|
version = "2.5.1";
|
2018-01-16 13:28:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:10 +01:00
|
|
|
sha256 = "83ecac4773ece02c49c364d99b465644c17cc66f1719560117e74991d9eb566b";
|
2018-01-16 13:28:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
six
|
2019-01-17 19:25:35 +00:00
|
|
|
] ++ lib.optional (!isPy3k) bz2file;
|
|
|
|
|
|
|
|
checkInputs = [ nose mock ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|