about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/box2d/default.nix
blob: e6f6a390f37495ea1486c44ef33e10000b51e9f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchPypi
, swig2
, isPy3k
}:

buildPythonPackage rec {
  pname = "Box2D";
  version = "2.3.2";
  disabled = isPy3k;

  src = fetchPypi {
    inherit pname version;
    sha256 = "d1557dffdf9c1d6c796ec5df53e3d93227bb026c14b8411d22c295edaa2fb225";
  };

  postPatch = ''
    sed -i "s/'Box2D.tests' : 'tests'//" setup.py
  '';

  nativeBuildInputs = [ swig2 ];

  # tests not included with pypi release
  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/pybox2d/pybox2d";
    description = ''
      A 2D game physics library for Python under
      the very liberal zlib license
    '';
    license = licenses.zlib;
    maintainers = with maintainers; [ sepi ];
  };
}