Robert Schütz 2 years ago committed by Robert Schütz
parent 486992aca7
commit e8488cd500
  1. 18
      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

Loading…
Cancel
Save