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
This commit is contained in:
Ben Darwin 2020-01-27 11:00:21 -05:00 committed by Frederik Rietdijk
parent 8f584be886
commit 83bdc1d989
1 changed files with 9 additions and 11 deletions

View File

@ -1,31 +1,28 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, isPy3k
, isPy27 , isPy27
, bz2file
, mock
, nose , nose
, pytest
, numpy , numpy
, six , h5py
, pydicom
, scipy
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "nibabel"; pname = "nibabel";
version = "3.0.0"; version = "3.0.1";
disabled = isPy27; disabled = isPy27;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "0f5bc325c9cb203c6f0ab876ba1a5ada811284bb3a4c5d063eeaafaefbad873d"; sha256 = "08nlny8vzkpjpyb0q943cq57m2s4wndm86chvd3d5qvar9z6b36k";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ numpy scipy h5py pydicom ];
numpy
six
] ++ lib.optional (!isPy3k) bz2file;
checkInputs = [ nose mock ]; checkInputs = [ nose pytest ];
checkPhase = '' checkPhase = ''
nosetests nosetests
@ -36,5 +33,6 @@ buildPythonPackage rec {
description = "Access a multitude of neuroimaging data formats"; description = "Access a multitude of neuroimaging data formats";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ashgillman ]; maintainers = with maintainers; [ ashgillman ];
platforms = platforms.x86_64; # https://github.com/nipy/nibabel/issues/861
}; };
} }