mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-19 03:28:45 +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
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, python
|
, python
|
||||||
, cffi
|
, cffi
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, ApplicationServices
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -17,6 +19,9 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ cffi ];
|
propagatedBuildInputs = [ cffi ];
|
||||||
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
|
ApplicationServices
|
||||||
|
];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
${python.interpreter} setup.py build_ext --inplace
|
${python.interpreter} setup.py build_ext --inplace
|
||||||
@ -26,11 +31,13 @@ buildPythonPackage rec {
|
|||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"pymunk/tests"
|
"pymunk/tests"
|
||||||
];
|
];
|
||||||
|
pythonImportsCheck = [ "pymunk" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "2d physics library";
|
description = "2d physics library";
|
||||||
homepage = "https://www.pymunk.org";
|
homepage = "https://www.pymunk.org";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ angustrau ];
|
maintainers = with maintainers; [ angustrau ];
|
||||||
|
platforms = platforms.linux ++ [ "x86_64-darwin" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -6323,7 +6323,9 @@ in {
|
|||||||
|
|
||||||
pymumble = callPackage ../development/python-modules/pymumble { };
|
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 { };
|
pymupdf = callPackage ../development/python-modules/pymupdf { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user