Merge pull request #130329 from angustrau/pymunk

python3Packages.pymunk: init at 6.0.0
This commit is contained in:
Sandro 2021-07-22 15:09:09 +02:00 committed by GitHub
commit b2cf19d12f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, python
, cffi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pymunk";
version = "6.0.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "04jqqd2y0wzzkqppbl08vyzgbcpl5qj946w8da2ilypqdx7j2akp";
};
propagatedBuildInputs = [ cffi ];
preBuild = ''
${python.interpreter} setup.py build_ext --inplace
'';
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [
"pymunk/tests"
];
meta = with lib; {
description = "2d physics library";
homepage = "https://www.pymunk.org";
license = with licenses; [ mit ];
maintainers = with maintainers; [ angustrau ];
};
}

View file

@ -6273,6 +6273,8 @@ in {
pymumble = callPackage ../development/python-modules/pymumble { };
pymunk = callPackage ../development/python-modules/pymunk { };
pymupdf = callPackage ../development/python-modules/pymupdf { };
PyMVGLive = callPackage ../development/python-modules/pymvglive { };