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