Skip to content

Commit e0d91bd

Browse files
authored
python313Packages.wandb: 0.19.8 -> 0.19.10 (#398221)
2 parents ecd73d2 + 04b8895 commit e0d91bd

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

pkgs/development/python-modules/wandb/default.nix

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,18 @@
7171
soundfile,
7272
tenacity,
7373
torch,
74+
torchvision,
7475
tqdm,
7576
writableTmpDirAsHomeHook,
7677
}:
7778

7879
let
79-
version = "0.19.8";
80+
version = "0.19.10";
8081
src = fetchFromGitHub {
8182
owner = "wandb";
8283
repo = "wandb";
8384
tag = "v${version}";
84-
hash = "sha256-hveMyGeu9RhdtWMbV/4GQ4KUNfjSt0CKyW7Yx8QtlLM=";
85+
hash = "sha256-SptjImAK0hDAr7UZjUMWnAVB1bxyzoATlyrPek5Tm48=";
8586
};
8687

8788
gpu-stats = rustPlatform.buildRustPackage {
@@ -92,7 +93,7 @@ let
9293
sourceRoot = "${src.name}/gpu_stats";
9394

9495
useFetchCargoVendor = true;
95-
cargoHash = "sha256-KrwZh8OoVwImfYDmvT2Je2MYyiTZVQYngwvVC+7fTzI=";
96+
cargoHash = "sha256-kkWvTLduxFVIEvi4e65QQ7S0kHTRJ8XW028o430L91s=";
9697

9798
checkFlags = [
9899
# fails in sandbox
@@ -119,9 +120,9 @@ let
119120

120121
# hardcode the `gpu_stats` binary path.
121122
postPatch = ''
122-
substituteInPlace pkg/monitor/gpu.go \
123+
substituteInPlace pkg/monitor/gpuresourcemanager.go \
123124
--replace-fail \
124-
'cmdPath, err := getGPUStatsCmdPath()' \
125+
'cmdPath, err := getGPUCollectorCmdPath()' \
125126
'cmdPath, err := "${lib.getExe gpu-stats}", error(nil)'
126127
'';
127128

@@ -137,6 +138,18 @@ let
137138
versionCheckProgramArg = "--version";
138139
doInstallCheck = true;
139140

141+
checkFlags =
142+
let
143+
skippedTests = [
144+
# gpu sampling crashes in the sandbox
145+
"TestSystemMonitor_BasicStateTransitions"
146+
"TestSystemMonitor_RepeatedCalls"
147+
"TestSystemMonitor_UnexpectedTransitions"
148+
"TestSystemMonitor_FullCycle"
149+
];
150+
in
151+
[ "-skip=^${lib.concatStringsSep "$|^" skippedTests}$" ];
152+
140153
__darwinAllowLocalNetworking = true;
141154

142155
meta.mainProgram = "wandb-core";
@@ -238,6 +251,7 @@ buildPythonPackage rec {
238251
soundfile
239252
tenacity
240253
torch
254+
torchvision
241255
tqdm
242256
writableTmpDirAsHomeHook
243257
];

0 commit comments

Comments
 (0)