diff --git a/pkgs/development/python-modules/pybullet/default.nix b/pkgs/development/python-modules/pybullet/default.nix index d7b46f07749d..e2d391493d2d 100644 --- a/pkgs/development/python-modules/pybullet/default.nix +++ b/pkgs/development/python-modules/pybullet/default.nix @@ -3,15 +3,16 @@ , fetchPypi , libGLU, libGL , xorg +, numpy }: buildPythonPackage rec { pname = "pybullet"; - version = "2.6.1"; + version = "2.6.6"; src = fetchPypi { inherit pname version; - sha256 = "c6da064687ae481c73b744b9f3a62d8231349a6bf368d7a2e564f71ef73e9403"; + sha256 = "1lsvjqij1vb9w8j6lvnq7lppflc7svz4cj37n74q67mb46gq3dxr"; }; buildInputs = [ @@ -19,6 +20,8 @@ buildPythonPackage rec { xorg.libX11 ]; + propagatedBuildInputs = [ numpy ]; + patches = [ # make sure X11 and OpenGL can be found at runtime ./static-libs.patch diff --git a/pkgs/development/python-modules/pybullet/static-libs.patch b/pkgs/development/python-modules/pybullet/static-libs.patch index 08a68b814866..8b58e3659e05 100644 --- a/pkgs/development/python-modules/pybullet/static-libs.patch +++ b/pkgs/development/python-modules/pybullet/static-libs.patch @@ -1,13 +1,13 @@ diff --git a/setup.py b/setup.py -index 98efabdbf..e69e79084 100644 +index 6f7bd7589..321fc6ab0 100644 --- a/setup.py +++ b/setup.py -@@ -563,6 +563,8 @@ print("-----") +@@ -465,6 +465,8 @@ print("-----") extensions = [] +libraries += [ "X11", "GL" ] # statically link x11 and opengl + - pybullet_ext = Extension("pybullet", - sources = sources, - libraries = libraries, + pybullet_ext = Extension( + "pybullet", + sources=sources,