python313Packages.pyrender: use llvmpipeHook (#409603)

This commit is contained in:
Peder Bergebakken Sundt
2025-06-06 01:36:22 +02:00
committed by GitHub
2 changed files with 14 additions and 4 deletions
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
@@ -16,6 +17,7 @@
six,
trimesh,
pytestCheckHook,
mesa,
}:
buildPythonPackage rec {
@@ -77,10 +79,16 @@ buildPythonPackage rec {
env.PYOPENGL_PLATFORM = "egl"; # enables headless rendering during check
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs =
[
pytestCheckHook
]
++ lib.filter (lib.meta.availableOn stdenv.hostPlatform) [
mesa.llvmpipeHook
];
disabledTestPaths = [
# does not work inside sandbox, no GPU
disabledTestPaths = lib.optionals (!lib.meta.availableOn stdenv.hostPlatform mesa.llvmpipeHook) [
# requires opengl context
"tests/unit/test_offscreen.py"
];
+3 -1
View File
@@ -13404,7 +13404,9 @@ self: super: with self; {
pyregion = callPackage ../development/python-modules/pyregion { };
pyrender = callPackage ../development/python-modules/pyrender { };
pyrender = callPackage ../development/python-modules/pyrender {
inherit (pkgs) mesa;
};
pyrevolve = callPackage ../development/python-modules/pyrevolve { };