1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, pytest
6, pytestrunner
7, pytestCheckHook
8, numpy
9, pillow
10}:
11
12buildPythonPackage rec {
13 version = "2.0.0";
14 pname = "pydicom";
15 disabled = isPy27;
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "594c91f715c415ef439f498351ae68fb770c776fc5aa72f3c87eb500dc2a7470";
20 };
21
22 propagatedBuildInputs = [ numpy pillow ];
23
24 checkInputs = [ pytest pytestrunner pytestCheckHook ];
25 disabledTests = [ "test_invalid_bit_depth_raises" ];
26 # harmless failure; see https://github.com/pydicom/pydicom/issues/1119
27
28 meta = with stdenv.lib; {
29 homepage = "https://pydicom.github.io";
30 description = "Pure-Python package for working with DICOM files";
31 license = licenses.mit;
32 maintainers = with maintainers; [ bcdarwin ];
33 };
34}