Merge pull request #133449 from angustrau/pymunk
python3Packages.pymunk: add x86_64-darwin support
This commit is contained in:
commit
d2ef29aa30
2 changed files with 11 additions and 2 deletions
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue