python313Packages.pyrender: use llvmpipeHook

Didn't know about this one, pretty neat!
This commit is contained in:
Peder Bergebakken Sundt
2025-05-24 20:19:59 +02:00
parent 190ee55caa
commit f443d8a56e
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
@@ -13290,7 +13290,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 { };