nixpkgs-suyu/pkgs/development/python-modules/nibabel/default.nix
2019-12-30 16:46:44 +01:00

38 lines
668 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, bz2file
, mock
, nose
, numpy
, six
}:
buildPythonPackage rec {
pname = "nibabel";
version = "3.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "0f5bc325c9cb203c6f0ab876ba1a5ada811284bb3a4c5d063eeaafaefbad873d";
};
propagatedBuildInputs = [
numpy
six
] ++ lib.optional (!isPy3k) bz2file;
checkInputs = [ nose mock ];
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 ];
};
}