2020-01-16 19:58:51 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-06-26 06:54:41 +02:00
|
|
|
, isPy27
|
2020-01-16 19:58:51 +01:00
|
|
|
, pytest
|
|
|
|
, pytestrunner
|
2020-07-16 21:24:54 +02:00
|
|
|
, pytestCheckHook
|
2020-01-16 19:58:51 +01:00
|
|
|
, numpy
|
|
|
|
, pillow
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-06-06 08:47:24 +02:00
|
|
|
version = "2.0.0";
|
2020-01-16 19:58:51 +01:00
|
|
|
pname = "pydicom";
|
2020-06-26 06:54:41 +02:00
|
|
|
disabled = isPy27;
|
2020-01-16 19:58:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 08:47:24 +02:00
|
|
|
sha256 = "594c91f715c415ef439f498351ae68fb770c776fc5aa72f3c87eb500dc2a7470";
|
2020-01-16 19:58:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy pillow ];
|
2020-07-16 21:24:54 +02:00
|
|
|
|
|
|
|
checkInputs = [ pytest pytestrunner pytestCheckHook ];
|
|
|
|
disabledTests = [ "test_invalid_bit_depth_raises" ];
|
|
|
|
# harmless failure; see https://github.com/pydicom/pydicom/issues/1119
|
2020-01-16 19:58:51 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pydicom.github.io";
|
2020-01-16 19:58:51 +01:00
|
|
|
description = "Pure-Python package for working with DICOM files";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|