I tried to run the example, but it assumes the nibabel 2.0 command for the affine (without expliciting the version requirements in the install). The old 1.0 way of doing it is get_affine, but that is deprecated according to http://nipy.org/nibabel/reference/nibabel.spatialimages.html
So, as a workaround, I suggest either
putting nibabel 2.0 as a dependency
checking for nibabel version with nibabel.version and use affine for 2.0 (like it is currently doing) and use get_affine for nibabel 1.
Second option won't force people to upgrade, but requires some code edit.
I tried to run the example, but it assumes the nibabel 2.0 command for the affine (without expliciting the version requirements in the install). The old 1.0 way of doing it is get_affine, but that is deprecated according to http://nipy.org/nibabel/reference/nibabel.spatialimages.html
So, as a workaround, I suggest either
Second option won't force people to upgrade, but requires some code edit.