diff options
| author | Ben Darwin <bcdarwin@gmail.com> | 2020-03-29 17:28:31 -0400 |
|---|---|---|
| committer | Jon <jonringer@users.noreply.github.com> | 2020-03-30 18:01:07 -0700 |
| commit | 4aaa18b64b1daa341529b23b728c547bfa6a209f (patch) | |
| tree | 479b94c1250b5156e87a4925be19aac6b5e6343f /pkgs/development/python-modules/dcmstack | |
| parent | ephemeral: 6.3.0 -> 6.3.1 (diff) | |
| download | nixpkgs-4aaa18b64b1daa341529b23b728c547bfa6a209f.tar.gz | |
python3Packages.dcmstack: init at 0.8
Diffstat (limited to 'pkgs/development/python-modules/dcmstack')
| -rw-r--r-- | pkgs/development/python-modules/dcmstack/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dcmstack/default.nix b/pkgs/development/python-modules/dcmstack/default.nix new file mode 100644 index 000000000000..f06e361dc716 --- /dev/null +++ b/pkgs/development/python-modules/dcmstack/default.nix @@ -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 ]; + }; +} |
