nixpkgs/pkgs/development/python-modules/nibabel/default.nix

41 lines
698 B
Nix
Raw Normal View History

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