3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.dcmstack: init at 0.8

This commit is contained in:
Ben Darwin 2020-03-29 17:28:31 -04:00 committed by Jon
parent e38859deac
commit 4aaa18b64b
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ 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 ];
};
}

View file

@ -643,6 +643,8 @@ in {
exchangelib = callPackage ../development/python-modules/exchangelib { };
dcmstack = callPackage ../development/python-modules/dcmstack { };
dbus-python = callPackage ../development/python-modules/dbus {
inherit (pkgs) dbus pkgconfig;
};