python3Packages.pymunk: add x86_64-darwin support

This commit is contained in:
Angus Trau 2021-08-11 14:01:37 +10:00
parent e221bcae10
commit a375bbc5f0
2 changed files with 11 additions and 2 deletions

View File

@ -1,9 +1,11 @@
{ lib
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, python
, cffi
, pytestCheckHook
, ApplicationServices
}:
buildPythonPackage rec {
@ -17,6 +19,9 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ cffi ];
buildInputs = lib.optionals stdenv.isDarwin [
ApplicationServices
];
preBuild = ''
${python.interpreter} setup.py build_ext --inplace
@ -26,11 +31,13 @@ buildPythonPackage rec {
pytestFlagsArray = [
"pymunk/tests"
];
pythonImportsCheck = [ "pymunk" ];
meta = with lib; {
description = "2d physics library";
homepage = "https://www.pymunk.org";
license = with licenses; [ mit ];
maintainers = with maintainers; [ angustrau ];
platforms = platforms.linux ++ [ "x86_64-darwin" ];
};
}

View File

@ -6323,7 +6323,9 @@ in {
pymumble = callPackage ../development/python-modules/pymumble { };
pymunk = callPackage ../development/python-modules/pymunk { };
pymunk = callPackage ../development/python-modules/pymunk {
inherit (pkgs.darwin.apple_sdk.frameworks) ApplicationServices;
};
pymupdf = callPackage ../development/python-modules/pymupdf { };