Merge pull request #133449 from angustrau/pymunk

python3Packages.pymunk: add x86_64-darwin support
This commit is contained in:
Sandro 2021-08-11 10:50:31 +02:00 committed by GitHub
commit d2ef29aa30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 { };