python3Packages.wgpu-py: 0.23.0 -> 0.25.0

This commit is contained in:
Benjamin Sparks
2025-10-23 22:38:19 +02:00
parent 372b1b3f23
commit cd6b9e73c5
@@ -29,6 +29,7 @@
psutil,
pypng,
pytest,
rendercanvas,
ruff,
trio,
@@ -38,14 +39,14 @@
}:
buildPythonPackage rec {
pname = "wgpu-py";
version = "0.23.0";
version = "0.25.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pygfx";
repo = "wgpu-py";
tag = "v${version}";
hash = "sha256-z9MRnhPSI+9lGS0UQ5VnSwdCGdYdNnqlDQmb8JAqmyc=";
hash = "sha256-TErwgzujuHafvSiNpfmga9GQtvGFFkDjBqe8eX/dlP8=";
};
postPatch =
@@ -63,11 +64,6 @@ buildPythonPackage rec {
+ ''
substituteInPlace examples/compute_textures.py \
--replace-fail 'import wgpu' 'import wgpu # run_example = false'
''
# Tweak tests that fail due to a dependency of `wgpu-native`, `naga`, adding an `ir` module
+ ''
substituteInPlace tests/test_wgpu_native_errors.py \
--replace-fail 'naga::' 'naga::ir::'
'';
# wgpu-py expects to have an appropriately named wgpu-native library in wgpu/resources
@@ -111,6 +107,8 @@ buildPythonPackage rec {
psutil
pypng
pytest
# break circular dependency cycle
(rendercanvas.overrideAttrs { doInstallCheck = false; })
ruff
trio
];