3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/nibabel/default.nix
Ben Darwin 83bdc1d989 python3Packages.nibabel: 3.0.0 -> 3.0.1
- this unbreaks the package due to erroring tests in 3.0.0
- remove obsolete (mostly Python2-related) deps
- add deps to support MINC, DICOM, and SPM formats
- only build on x64 due to a dtype bug on Arm64
2020-02-06 19:59:14 +01:00

39 lines
741 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, nose
, pytest
, numpy
, h5py
, pydicom
, scipy
}:
buildPythonPackage rec {
pname = "nibabel";
version = "3.0.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "08nlny8vzkpjpyb0q943cq57m2s4wndm86chvd3d5qvar9z6b36k";
};
propagatedBuildInputs = [ numpy scipy h5py pydicom ];
checkInputs = [ nose pytest ];
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 ];
platforms = platforms.x86_64; # https://github.com/nipy/nibabel/issues/861
};
}