python3Packages.rendercanvas: 2.5.1 -> 2.5.2 (#475233)

This commit is contained in:
kirillrdy
2026-01-01 19:32:15 +00:00
committed by GitHub
2 changed files with 14 additions and 13 deletions
@@ -1,15 +1,11 @@
{
lib,
stdenv,
fetchFromGitHub,
buildPythonPackage,
# build-system
flit-core,
# dependencies
sniffio,
# nativeCheckInputs
pytestCheckHook,
imageio,
@@ -17,25 +13,28 @@
numpy,
trio,
wgpu-py,
nix-update-script,
}:
buildPythonPackage rec {
pname = "rendercanvas";
version = "2.5.1";
version = "2.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "pygfx";
repo = "rendercanvas";
tag = "v${version}";
hash = "sha256-FjKotBAGEtM5JYA3PGeoSl3v4m6vq1EE/r/gCsabdIo=";
hash = "sha256-fOjiGNxEUVI+jddrwqrlBYT+CAMDQCIPNHwGonBH4Hk=";
};
postPatch = ''
rm -r rendercanvas/__pyinstaller
'';
env = {
# This relaxes the timeing assertions thus making the tests less flaky
CI = "1";
};
build-system = [ flit-core ];
nativeCheckInputs = [
@@ -48,10 +47,13 @@ buildPythonPackage rec {
(wgpu-py.overrideAttrs { doInstallCheck = false; })
];
# flaky timing and / or interrupt based tests
disabledTests = [
# flaky timing and / or interrupt based tests
"test_offscreen_event_loop"
"test_call_later_thread"
# AssertionError
"test_that_we_are_on_lavapipe"
];
disabledTestPaths = [
"tests/test_loop.py"
@@ -64,7 +66,6 @@ buildPythonPackage rec {
description = "One canvas API, multiple backends";
homepage = "https://github.com/pygfx/rendercanvas";
changelog = "https://github.com/pygfx/rendercanvas/releases/tag/${src.tag}";
platforms = lib.platforms.all;
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.bengsparks ];
@@ -127,9 +127,9 @@ buildPythonPackage rec {
installCheckPhase = ''
runHook preInstallCheck
for suite in tests examples codegen tests_mem; do
pytest -vvv $suite
done
pytest tests -k "not test_render_timestamps_inside_encoder"
pytest examples
pytest tests_mem
runHook postInstallCheck
'';