Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / dcmstack / default.nix
blob08dcbb796acb82a05d83c03a3e066d958c699977
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 , nibabel
7 , pydicom
8 , pylibjpeg-libjpeg
9 }:
11 buildPythonPackage rec {
12   pname = "dcmstack";
13   version = "0.9";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "moloney";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-GVzih9H2m2ZGSuZMRuaDG78b95PI3j0WQw5M3l4KNCs=";
21   };
23   propagatedBuildInputs = [
24     nibabel
25     pydicom
26     pylibjpeg-libjpeg
27   ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   meta = with lib; {
32     homepage = "https://github.com/moloney/dcmstack";
33     description = "DICOM to Nifti conversion preserving metadata";
34     license = licenses.mit;
35     maintainers = with maintainers; [ bcdarwin ];
36   };