about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/box2d/default.nix
blob: 1b372f90a90f21e7e327c8b95be0e6cd89adb049 (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
{ stdenv
, 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 stdenv.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 ];
  };
}