13 buildPythonPackage rec {
16 format = "setuptools";
18 disabled = pythonOlder "3.7";
21 inherit pname version;
23 hash = "sha256-AV6upaZcnbKmQm9tTItRB6LpckappjdHvMH/awn/KeE=";
26 propagatedBuildInputs = [ cffi ];
28 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ ApplicationServices ];
31 ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace
34 nativeCheckInputs = [ pytestCheckHook ];
36 pytestFlagsArray = [ "pymunk/tests" ];
38 pythonImportsCheck = [ "pymunk" ];
41 description = "2d physics library";
42 homepage = "https://www.pymunk.org";
43 changelog = "https://github.com/viblo/pymunk/releases/tag/${version}";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ emilytrau ];
46 platforms = platforms.unix;