mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
39 lines
680 B
Nix
39 lines
680 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, packaging
|
|
, pytest
|
|
, nose
|
|
, numpy
|
|
, h5py
|
|
, pydicom
|
|
, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nibabel";
|
|
version = "3.2.2";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-sNzBdLMEBc6ej+weqzy7sg9cXkkgl2wIsi4FC3wST5Q=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ numpy scipy h5py packaging pydicom ];
|
|
|
|
checkInputs = [ nose pytest ];
|
|
|
|
checkPhase = ''
|
|
pytest
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://nipy.org/nibabel";
|
|
description = "Access a multitude of neuroimaging data formats";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ashgillman ];
|
|
};
|
|
}
|