20 buildPythonPackage rec {
25 disabled = pythonOlder "3.8";
27 src = fetchFromGitHub {
30 rev = "refs/tags/v${version}";
31 hash = "sha256-RqKJStUZhnSmsifn3WjYLfmRkkme+GOe6dp0E0MW9tE=";
34 propagatedBuildInputs = [
44 ] ++ typer.passthru.optional-dependencies.all;
46 nativeCheckInputs = [ pytestCheckHook matplotlib parameterized ];
48 # tries to download models:
50 ] ++ lib.optionals stdenv.isAarch64 [
51 # RuntimeError: DataLoader worker (pid(s) <...>) exited unexpectedly
52 "test_queue_multiprocessing"
54 pythonImportsCheck = [
60 description = "Medical imaging toolkit for deep learning";
61 homepage = "https://torchio.readthedocs.io";
62 license = licenses.asl20;
63 maintainers = [ maintainers.bcdarwin ];