Files
Connor Baker c0bb60477d python3Packages.cuda-bindings: normalise .git_archival.txt for stable hashes
GitHub expands the export-subst'd .git_archival.txt when generating the
tarball, and its ref-names line lists every ref pointing at the tagged
commit. The tag v13.4.3 never moved, but its tarball now lists
refs/pull/2937/head, which broke the 13.4 hash. Keep only the tag;
setuptools-scm still resolves it to the right version.

This changes the 13.2 hash (its tarball also lists the
cuda-pathfinder-v1.4.2 tag) and fixes the 13.4 one. 12.9 and 13.3 keep
their hashes. 13.0 and 13.1 ship no .git_archival.txt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 17:08:05 -07:00

51 lines
1.4 KiB
Nix

{
replaceVars,
cudaLibPaths,
}:
{
version = "13.2.0";
sourceHash = "sha256-l3/FleN2MSpEw2g4b+t4qduOHvZWW74D6sv+h/0xmws=";
nvidiaLibsPatch = replaceVars ./patch-nvidia-libs-paths_13_2.patch {
inherit (cudaLibPaths)
libcudart
libcufile
libnvfatbin
libnvjitlink
libnvml
libnvrtc
libnvvm
;
};
pythonImportsCheck = [
"cuda.bindings.nvfatbin"
"cuda.bindings.nvml"
];
disabledTests = [
# Requires GPU discovery support not available in the test environment
"test_discover_gpus"
# sysfs cpu topology is not available in the sandbox, causing:
# cuda.bindings.nvml.UnknownError: Unknown Error
# hwloc/linux: failed to find sysfs cpu topology directory, aborting linux discovery.
"test_device_get_cpu_affinity_within_scope"
"test_device_get_memory_affinity"
# Requires the nvidia_fs kernel module (GPUDirect Storage), causing:
# cuda.bindings.cufile.cuFileError: NVFS_SETUP_ERROR (5033): NVFS driver initialization error
"test_buf_register_already_registered"
"test_buf_register_host_memory"
"test_buf_register_invalid_flags"
"test_buf_register_large_buffer"
"test_buf_register_multiple_buffers"
"test_buf_register_simple"
"test_get_bar_size_in_kb"
"test_get_parameter_min_max_value"
"test_set_parameter_posix_pool_slab_array"
"test_set_stats_level"
"test_stats_start_stop"
];
}