diff options
Diffstat (limited to 'pkgs/development/python-modules/pyrender/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyrender/default.nix | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/pkgs/development/python-modules/pyrender/default.nix b/pkgs/development/python-modules/pyrender/default.nix index eb1d5d17ee47b..1ea8179345098 100644 --- a/pkgs/development/python-modules/pyrender/default.nix +++ b/pkgs/development/python-modules/pyrender/default.nix @@ -1,25 +1,27 @@ -{ lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, fetchpatch -, freetype-py -, imageio -, networkx -, numpy -, pillow -, pyglet -, pyopengl -, scipy -, six -, trimesh -, pytestCheckHook +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + fetchpatch, + setuptools, + freetype-py, + imageio, + networkx, + numpy, + pillow, + pyglet, + pyopengl, + scipy, + six, + trimesh, + pytestCheckHook, }: buildPythonPackage rec { pname = "pyrender"; version = "0.1.45"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.5"; @@ -31,7 +33,8 @@ buildPythonPackage rec { }; patches = [ - (fetchpatch { # yet to be tagged + (fetchpatch { + # yet to be tagged name = "relax-pyopengl.patch"; url = "https://github.com/mmatl/pyrender/commit/7c613e8aed7142df9ff40767a8f10b7a19b6255c.patch"; hash = "sha256-SXRV9RC3PfQGjjIQ+n97HZrSDPae3rAHnTBiHXSFLaY="; @@ -45,12 +48,14 @@ buildPythonPackage rec { # the commit does not apply as a patch when cherry picked, hence the substituteInPlace postPatch = '' substituteInPlace tests/unit/test_meshes.py \ - --replace \ + --replace-fail \ "bm = trimesh.load('tests/data/WaterBottle.glb').dump()[0]" \ 'bm = trimesh.load("tests/data/WaterBottle.glb").geometry["WaterBottle"]' ''; - propagatedBuildInputs = [ + nativeBuildInputs = [ setuptools ]; + + dependencies = [ freetype-py imageio networkx @@ -65,9 +70,7 @@ buildPythonPackage rec { env.PYOPENGL_PLATFORM = "egl"; # enables headless rendering during check - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # does not work inside sandbox, no GPU |