8 buildPythonPackage rec {
11 format = "setuptools";
13 src = fetchFromGitHub {
16 rev = "refs/tags/${version}";
17 hash = "sha256-yjLFvsg8GQLxjN1vtZM9zl+kAmD4+eS/vzRkpj0SCjY=";
20 nativeBuildInputs = [ swig ];
22 # We need to build the package explicitly a first time so that the library/Box2D/Box2D.py file
24 # After that, the default behavior will succeed at installing the package.
29 pythonImportsCheck = [
34 # Tests need to start GUI windows.
38 description = "2D Game Physics for Python";
39 homepage = "https://github.com/pybox2d/pybox2d";
40 license = licenses.zlib;
41 maintainers = with maintainers; [ GaetanLepage ];