Merge pull request #236902 from bcdarwin/update-heudiconv

python310Packages.heudiconv: 0.12.2 -> 0.13.1

authored by

Mario Rodas and committed by
GitHub
66a607d7 078daf8d

+22 -17
+22 -17
pkgs/development/python-modules/heudiconv/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , isPy27 5 - , pytest 6 - , mock 4 + , pythonOlder 5 + , pytestCheckHook 6 + , datalad 7 + , git 7 8 , dcm2niix 8 9 , nibabel 9 10 , pydicom ··· 14 15 }: 15 16 16 17 buildPythonPackage rec { 17 - version = "0.12.2"; 18 + version = "0.13.1"; 18 19 pname = "heudiconv"; 20 + format = "pyproject"; 19 21 20 - disabled = isPy27; 22 + disabled = pythonOlder "3.7"; 21 23 22 24 src = fetchPypi { 23 25 inherit pname version; 24 - #sha256 = "0gzqqa4pzhywdbvks2qjniwhr89sgipl5k7h9hcjs7cagmy9gb05"; 25 - sha256 = "sha256-cYr74mw7tXRJRr8rXlu1UMZuU3YXXfDzhuc+vaa+7PQ="; 26 + sha256 = "sha256-UUBRC6RToj4XVbJnxG+EKdue4NVpTAW31RNm9ieF1lU="; 26 27 }; 27 - 28 - postPatch = '' 29 - # doesn't exist as a separate package with Python 3: 30 - substituteInPlace heudiconv/info.py --replace "'pathlib'," "" 31 - ''; 32 28 33 29 propagatedBuildInputs = [ 34 - dcm2niix nibabel pydicom nipype dcmstack etelemetry filelock 30 + nibabel 31 + pydicom 32 + nipype 33 + dcmstack 34 + etelemetry 35 + filelock 35 36 ]; 36 37 37 - nativeCheckInputs = [ dcm2niix pytest mock ]; 38 + nativeCheckInputs = [ 39 + datalad 40 + dcm2niix 41 + pytestCheckHook 42 + git 43 + ]; 38 44 39 - # test_monitor and test_dlad require 'inotify' and 'datalad' respectively, 40 - # and these aren't in Nixpkgs 41 - checkPhase = "pytest -k 'not test_dlad and not test_monitor' heudiconv/tests"; 45 + preCheck = ''export HOME=$(mktemp -d)''; 42 46 43 47 meta = with lib; { 44 48 homepage = "https://heudiconv.readthedocs.io"; 45 49 description = "Flexible DICOM converter for organizing imaging data"; 50 + changelog = "https://github.com/nipy/heudiconv/releases/tag/v${version}"; 46 51 license = licenses.asl20; 47 52 maintainers = with maintainers; [ bcdarwin ]; 48 53 };