22 buildPythonPackage rec {
23 pname = "torchsnapshot";
27 disabled = pythonOlder "3.7";
29 src = fetchFromGitHub {
31 repo = "torchsnapshot";
32 rev = "refs/tags/${version}";
33 hash = "sha256-F8OaxLH8BL6MPNLFv1hBuVmeEdnEQ5w2Qny6by1wP6k=";
52 pythonImportsCheck = [ "torchsnapshot" ];
60 description = "Performant, memory-efficient checkpointing library for PyTorch applications, designed with large, complex distributed workloads in mind";
61 homepage = "https://github.com/pytorch/torchsnapshot/";
62 changelog = "https://github.com/pytorch/torchsnapshot/releases/tag/${version}";
63 license = licenses.bsd3;
64 maintainers = with maintainers; [ GaetanLepage ];
66 # https://github.com/pytorch/torchsnapshot/issues/175
68 # ModuleNotFoundError: No module named 'torch._C._distributed_c10d'; 'torch._C' is not a package
69 || stdenv.hostPlatform.isDarwin;