diff options
author | Timo Kaufmann <timokau@zoho.com> | 2019-03-27 22:17:37 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 22:17:37 +0000 |
commit | 197bc2afc03cd49eb9862b6deea257b3a11ab15d (patch) | |
tree | c17ed112e075c401decff06adca691a1d93da7b8 | |
parent | 6c0a30321e87fa7ee73ce319b8a2e79bcfa5b459 (diff) | |
download | nixlib-197bc2afc03cd49eb9862b6deea257b3a11ab15d.tar nixlib-197bc2afc03cd49eb9862b6deea257b3a11ab15d.tar.gz nixlib-197bc2afc03cd49eb9862b6deea257b3a11ab15d.tar.bz2 nixlib-197bc2afc03cd49eb9862b6deea257b3a11ab15d.tar.lz nixlib-197bc2afc03cd49eb9862b6deea257b3a11ab15d.tar.xz nixlib-197bc2afc03cd49eb9862b6deea257b3a11ab15d.tar.zst nixlib-197bc2afc03cd49eb9862b6deea257b3a11ab15d.zip |
python.pkgs.pybullet: init at 2.4.8 (#58448)
-rw-r--r-- | pkgs/development/python-modules/pybullet/default.nix | 34 | ||||
-rw-r--r-- | pkgs/development/python-modules/pybullet/static-libs.patch | 13 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pybullet/default.nix b/pkgs/development/python-modules/pybullet/default.nix new file mode 100644 index 000000000000..944278ce3c2c --- /dev/null +++ b/pkgs/development/python-modules/pybullet/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchPypi +, libGLU_combined +, xorg +}: + +buildPythonPackage rec { + pname = "pybullet"; + version = "2.4.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "0b6dkrac5zydxqfrf827xhamsimychrn77dsfnz1kf7c1crlwcw9"; + }; + + buildInputs = [ + libGLU_combined + xorg.libX11 + ]; + + patches = [ + # make sure X11 and OpenGL can be found at runtime + ./static-libs.patch + ]; + + meta = with lib; { + description = "Open-source software for robot simulation, integrated with OpenAI Gym"; + homepage = https://pybullet.org/; + license = licenses.zlib; + maintainers = with maintainers; [ timokau ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/development/python-modules/pybullet/static-libs.patch b/pkgs/development/python-modules/pybullet/static-libs.patch new file mode 100644 index 000000000000..08a68b814866 --- /dev/null +++ b/pkgs/development/python-modules/pybullet/static-libs.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 98efabdbf..e69e79084 100644 +--- a/setup.py ++++ b/setup.py +@@ -563,6 +563,8 @@ print("-----") + + extensions = [] + ++libraries += [ "X11", "GL" ] # statically link x11 and opengl ++ + pybullet_ext = Extension("pybullet", + sources = sources, + libraries = libraries, diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0ef7303f5b57..285f0e87fa1c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -617,6 +617,8 @@ in { pybind11 = callPackage ../development/python-modules/pybind11 { }; + pybullet = callPackage ../development/python-modules/pybullet { }; + pycairo = callPackage ../development/python-modules/pycairo { inherit (pkgs) pkgconfig; }; |