3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/nibabel/default.nix

40 lines
761 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, packaging
, pytest
2020-07-05 22:11:32 +01:00
, nose
2019-08-06 03:08:14 +01:00
, numpy
, h5py
, pydicom
, scipy
}:
buildPythonPackage rec {
pname = "nibabel";
2020-07-05 22:11:32 +01:00
version = "3.1.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2020-07-05 22:11:32 +01:00
sha256 = "1kir9g7kmy2qygyzczx8nj4b0sc6jjvqy0ssm39bxzqsr1vzzvxm";
};
propagatedBuildInputs = [ numpy scipy h5py packaging pydicom ];
checkInputs = [ nose pytest ];
2019-08-06 03:08:14 +01:00
checkPhase = ''
2020-07-05 22:11:32 +01:00
pytest
'';
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
};
}