python313Packages.pyrender: use llvmpipeHook (#409603)
This commit is contained in:
@@ -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"
|
||||
];
|
||||
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user