pythonPackages.box2d: 2.3b0 -> 2.3.2
refactor move to python-modules
This commit is contained in:
parent
45323efb55
commit
5b0013e422
37
pkgs/development/python-modules/box2d/default.nix
Normal file
37
pkgs/development/python-modules/box2d/default.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, swig2
|
||||||
|
, pkgs-box2d
|
||||||
|
, 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
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ swig2 pkgs-box2d ];
|
||||||
|
|
||||||
|
# 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,14 +0,0 @@
|
|||||||
Common subdirectories: Box2D-2.3b0/Box2D and Box2D-2.3b0.new/Box2D
|
|
||||||
Common subdirectories: Box2D-2.3b0/examples and Box2D-2.3b0.new/examples
|
|
||||||
Common subdirectories: Box2D-2.3b0/library and Box2D-2.3b0.new/library
|
|
||||||
diff -u Box2D-2.3b0/setup.py Box2D-2.3b0.new/setup.py
|
|
||||||
--- Box2D-2.3b0/setup.py 2013-02-02 18:09:34.000000000 +0100
|
|
||||||
+++ Box2D-2.3b0.new/setup.py 2014-10-25 13:32:07.136922343 +0200
|
|
||||||
@@ -176,7 +176,6 @@
|
|
||||||
package_dir = {'Box2D': library_path,
|
|
||||||
'Box2D.b2': os.path.join(library_path, 'b2'),
|
|
||||||
'Box2D.tests' : 'tests'},
|
|
||||||
- test_suite = 'tests',
|
|
||||||
options = { 'build_ext': { 'swig_opts' : swig_arguments },
|
|
||||||
'egg_info' : { 'egg_base' : library_base },
|
|
||||||
},
|
|
@ -1225,31 +1225,7 @@ in {
|
|||||||
|
|
||||||
bottle = callPackage ../development/python-modules/bottle { };
|
bottle = callPackage ../development/python-modules/bottle { };
|
||||||
|
|
||||||
box2d = buildPythonPackage rec {
|
box2d = callPackage ../development/python-modules/box2d { pkgs-box2d = pkgs.box2d; };
|
||||||
name = "box2d-${version}";
|
|
||||||
version = "2.3b0";
|
|
||||||
disabled = (!isPy27);
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/B/Box2D/Box2D-2.3b0.zip";
|
|
||||||
sha256 = "4519842c650b0153550eb0c9864da46b5a4ec8555c68b70f5cd2952a21c788b0";
|
|
||||||
};
|
|
||||||
|
|
||||||
patches = [ ../development/python-modules/box2d/disable-test.patch ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ pkgs.swig2 pkgs.box2d ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://code.google.com/p/pybox2d/;
|
|
||||||
description = ''
|
|
||||||
A 2D game physics library for Python under
|
|
||||||
the very liberal zlib license
|
|
||||||
'';
|
|
||||||
license = licenses.zlib;
|
|
||||||
platforms = platforms.all;
|
|
||||||
maintainers = with maintainers; [ sepi ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
branca = callPackage ../development/python-modules/branca { };
|
branca = callPackage ../development/python-modules/branca { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user