3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/dicom2nifti/default.nix
2021-02-22 14:33:35 -05:00

39 lines
771 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, gdcm
, nose
, nibabel
, numpy
, pydicom
, scipy
, setuptools
}:
buildPythonPackage rec {
pname = "dicom2nifti";
version = "2.2.12";
disabled = isPy27;
# no tests in PyPI dist
src = fetchFromGitHub {
owner = "icometrix";
repo = pname;
rev = version;
sha256 = "0ddzaw0yasyi2wsh7a6r73cdcmdfbb0nh0k0n4yxp9vnkw1ag5z4";
};
propagatedBuildInputs = [ nibabel numpy pydicom scipy setuptools ];
checkInputs = [ nose gdcm ];
checkPhase = "nosetests tests";
meta = with lib; {
homepage = "https://github.com/icometrix/dicom2nifti";
description = "Library for converting dicom files to nifti";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}