2025-05-17 11:49:24 +02:00

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
libGLU,
libGL,
xorg,
numpy,
}:
buildPythonPackage rec {
pname = "pybullet";
version = "3.2.7";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-BCh5240QGsdZDe5HX8at7VCLhf4Sc/27/eHYi9IA4U8=";
};
nativeBuildInputs = [ setuptools ];
buildInputs = [
libGLU
libGL
xorg.libX11
];
propagatedBuildInputs = [ numpy ];
# Fix GCC 14 build.
# from incompatible pointer type [-Wincompatible-pointer-types
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
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";
downloadPage = "https://github.com/bulletphysics/bullet3";
homepage = "https://pybullet.org/";
license = licenses.zlib;
maintainers = with maintainers; [ timokau ];
platforms = platforms.linux;
};
}