diff options
Diffstat (limited to 'pkgs/development/python-modules/pymunk/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pymunk/default.nix | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/pymunk/default.nix b/pkgs/development/python-modules/pymunk/default.nix index f28a4908a6063..54ab01a4e615e 100644 --- a/pkgs/development/python-modules/pymunk/default.nix +++ b/pkgs/development/python-modules/pymunk/default.nix @@ -5,20 +5,27 @@ , python , cffi , pytestCheckHook +, pythonOlder , ApplicationServices }: buildPythonPackage rec { pname = "pymunk"; - version = "6.3.0"; + version = "6.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-er0+HuCQw2FPeyuBc1BVdutmidYzcKIBqdeteqwsXiA="; + hash = "sha256-YNzZ/wQz5s5J5ctXekNo0FksRoX03rZE1wXIghYcck4="; }; - propagatedBuildInputs = [ cffi ]; + propagatedBuildInputs = [ + cffi + ]; + buildInputs = lib.optionals stdenv.isDarwin [ ApplicationServices ]; @@ -27,15 +34,22 @@ buildPythonPackage rec { ${python.interpreter} setup.py build_ext --inplace ''; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; + pytestFlagsArray = [ "pymunk/tests" ]; - pythonImportsCheck = [ "pymunk" ]; + + pythonImportsCheck = [ + "pymunk" + ]; meta = with lib; { description = "2d physics library"; homepage = "https://www.pymunk.org"; + changelog = "https://github.com/viblo/pymunk/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ emilytrau ]; platforms = platforms.unix; |