mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
83bdc1d989
- 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
39 lines
741 B
Nix
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
|
|
};
|
|
}
|