depot/third_party/nixpkgs/pkgs/development/python-modules/dcmstack/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

39 lines
804 B
Nix

{ stdenv
, buildPythonPackage
, fetchFromGitHub
, pythonAtLeast
, nose
, nibabel
, pydicom
}:
buildPythonPackage rec {
pname = "dcmstack";
version = "0.8";
disabled = pythonAtLeast "3.8";
# https://github.com/moloney/dcmstack/issues/67
src = fetchFromGitHub {
owner = "moloney";
repo = pname;
rev = "v${version}";
sha256 = "1n24pp3rqz7ss1z6276fxynnppraxadbl3b9p8ijrcqnpzbzih7p";
};
propagatedBuildInputs = [ nibabel pydicom ];
checkInputs = [ nose ];
checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';
meta = with stdenv.lib; {
homepage = "https://github.com/moloney/dcmstack";
description = "DICOM to Nifti conversion preserving metadata";
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}