Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 222196b9d6dc
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 34807336e85f
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on May 6, 2020

  1. python3Packages.dicom2nifti: init at 2.2.8

    bcdarwin authored and Jon committed May 6, 2020

    Unverified

    The email in this signature doesn’t match the committer email.
    Copy the full SHA
    3480733 View commit details
Showing with 39 additions and 0 deletions.
  1. +37 −0 pkgs/development/python-modules/dicom2nifti/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
37 changes: 37 additions & 0 deletions pkgs/development/python-modules/dicom2nifti/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, gdcm
, nose
, nibabel
, numpy
, pydicom
, scipy
}:

buildPythonPackage rec {
pname = "dicom2nifti";
version = "2.2.8";
disabled = isPy27;

# no tests in PyPI dist
src = fetchFromGitHub {
owner = "icometrix";
repo = pname;
rev = version;
sha256 = "1qi2map6f4pa1l8wsif7ff7rhja6ynrjlm7w306dzvi9l25mia34";
};

propagatedBuildInputs = [ gdcm nibabel numpy pydicom scipy ];

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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -676,6 +676,8 @@ in {

dftfit = callPackage ../development/python-modules/dftfit { };

dicom2nifti = callPackage ../development/python-modules/dicom2nifti { };

discid = callPackage ../development/python-modules/discid { };

discordpy = callPackage ../development/python-modules/discordpy { };