at 22.05-pre 720 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, swig2 5, isPy3k 6}: 7 8buildPythonPackage rec { 9 pname = "Box2D"; 10 version = "2.3.2"; 11 disabled = isPy3k; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "d1557dffdf9c1d6c796ec5df53e3d93227bb026c14b8411d22c295edaa2fb225"; 16 }; 17 18 postPatch = '' 19 sed -i "s/'Box2D.tests' : 'tests'//" setup.py 20 ''; 21 22 nativeBuildInputs = [ swig2 ]; 23 24 # tests not included with pypi release 25 doCheck = false; 26 27 meta = with lib; { 28 homepage = "https://github.com/pybox2d/pybox2d"; 29 description = '' 30 A 2D game physics library for Python under 31 the very liberal zlib license 32 ''; 33 license = licenses.zlib; 34 maintainers = with maintainers; [ sepi ]; 35 }; 36}