python3Packages.pydicom: 2.2.2 -> 2.3.0

https://pydicom.github.io/pydicom/stable/release_notes/index.html#version-2-3-0
This commit is contained in:
Robert Schütz 2022-04-19 19:28:57 +00:00 committed by Robert Schütz
parent 486992aca7
commit e8488cd500

View File

@ -11,22 +11,22 @@
let
pname = "pydicom";
version = "2.2.2";
version = "2.3.0";
src = fetchFromGitHub {
owner = "${pname}";
repo = "${pname}";
owner = "pydicom";
repo = "pydicom";
rev = "v${version}";
sha256 = "sha256-p5hJAUsactv6UEvbVaF+zk4iapx98eYkC9Zo+lzFATA=";
hash = "sha256-CAQWaBkzecJ1VXQ5BnAUjmBMjh0I8y+gT7I4P4o2gqI=";
};
# Pydicom needs pydicom-data to run some tests. If these files aren't downloaded
# before the package creation, it'll try to download during the checkPhase.
test_data = fetchFromGitHub {
owner = "${pname}";
repo = "${pname}-data";
owner = "pydicom";
repo = "pydicom-data";
rev = "bbb723879690bb77e077a6d57657930998e92bd5";
sha256 = "sha256-dCI1temvpNWiWJYVfQZKy/YJ4ad5B0e9hEKHJnEeqzk=";
hash = "sha256-dCI1temvpNWiWJYVfQZKy/YJ4ad5B0e9hEKHJnEeqzk=";
};
in
@ -34,6 +34,8 @@ buildPythonPackage {
inherit pname version src;
disabled = pythonOlder "3.6";
format = "setuptools";
propagatedBuildInputs = [
numpy
pillow
@ -53,8 +55,8 @@ buildPythonPackage {
ln -s ${test_data}/data_store/data $HOME/.pydicom/data
'';
# This test try to remove a dicom inside $HOME/.pydicom/data/ and download it again.
disabledTests = [
# tries to remove a dicom inside $HOME/.pydicom/data/ and download it again
"test_fetch_data_files"
] ++ lib.optionals stdenv.isAarch64 [
# https://github.com/pydicom/pydicom/issues/1386