mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-18 19:17:31 +03:00
python3Packages.pymunk: add x86_64-darwin support
This commit is contained in:
parent
e221bcae10
commit
a375bbc5f0
@ -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 New Issue
Block a user