diff options
author | Angus Trau <me@angus.ws> | 2021-08-11 14:01:37 +1000 |
---|---|---|
committer | Angus Trau <me@angus.ws> | 2021-08-11 14:01:37 +1000 |
commit | a375bbc5f06144bafa4972c74add063d212429da (patch) | |
tree | d533ffb24a7bc85634b613c98f3d412aa6c4d419 /pkgs/development/python-modules/pymunk | |
parent | e221bcae106168e7e679767ac944f6adc961a933 (diff) |
python3Packages.pymunk: add x86_64-darwin support
Diffstat (limited to 'pkgs/development/python-modules/pymunk')
-rw-r--r-- | pkgs/development/python-modules/pymunk/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pymunk/default.nix b/pkgs/development/python-modules/pymunk/default.nix index 92918efa8ed88..4ee22feed1dfe 100644 --- a/pkgs/development/python-modules/pymunk/default.nix +++ b/pkgs/development/python-modules/pymunk/default.nix @@ -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" ]; }; } |