aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pydicom/default.nix
blob: 24186c09dcd5163787548992b45c4e08353dd48a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytestrunner
, pytestCheckHook
, numpy
, pillow
}:

buildPythonPackage rec {
  version = "2.1.1";
  pname = "pydicom";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "72a11086f6a277c1529a552583fde73e03256a912173f15e9bc256e5b28f28f1";
  };

  propagatedBuildInputs = [ numpy pillow ];

  checkInputs = [ pytest pytestrunner pytestCheckHook ];
  disabledTests = [ "test_invalid_bit_depth_raises" ];
  # harmless failure; see https://github.com/pydicom/pydicom/issues/1119

  meta = with stdenv.lib; {
    homepage = "https://pydicom.github.io";
    description = "Pure-Python package for working with DICOM files";
    license = licenses.mit;
    maintainers = with maintainers; [ bcdarwin ];
  };
}