Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 37 lines 742 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, libGLU, libGL 5, xorg 6, numpy 7}: 8 9buildPythonPackage rec { 10 pname = "pybullet"; 11 version = "2.8.7"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "9d3a8bdc9b4acce086c485ba719aabee33de7a867d84a058b182b139c789ad55"; 16 }; 17 18 buildInputs = [ 19 libGLU libGL 20 xorg.libX11 21 ]; 22 23 propagatedBuildInputs = [ numpy ]; 24 25 patches = [ 26 # make sure X11 and OpenGL can be found at runtime 27 ./static-libs.patch 28 ]; 29 30 meta = with lib; { 31 description = "Open-source software for robot simulation, integrated with OpenAI Gym"; 32 homepage = "https://pybullet.org/"; 33 license = licenses.zlib; 34 maintainers = with maintainers; [ timokau ]; 35 platforms = platforms.linux; 36 }; 37}