From e8488cd500d82332745ca6fa84c63607ef3f94d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 19 Apr 2022 19:28:57 +0000 Subject: [PATCH] python3Packages.pydicom: 2.2.2 -> 2.3.0 https://pydicom.github.io/pydicom/stable/release_notes/index.html#version-2-3-0 --- .../python-modules/pydicom/default.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pydicom/default.nix b/pkgs/development/python-modules/pydicom/default.nix index 5c7d5ab92ab..9310d0cf555 100644 --- a/pkgs/development/python-modules/pydicom/default.nix +++ b/pkgs/development/python-modules/pydicom/default.nix @@ -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