19 inherit (darwin.apple_sdk.frameworks)
27 buildPythonPackage rec {
28 pname = "raylib-python-cffi";
32 src = fetchFromGitHub {
33 owner = "electronstudio";
34 repo = "raylib-python-cffi";
35 rev = "refs/tags/v${version}";
36 hash = "sha256-R/w39zYkoOF5JqHDyqVIdON9yXFo2PeosyEQZOd4aYo=";
39 build-system = [ setuptools ];
40 dependencies = [ cffi ];
43 # This patch fixes to the builder script function to call pkg-config
44 # using the library name rather than searching only through raylib
45 ./fix_pyray_builder.patch
47 # use get_lib_flags() instead of linking to libraylib.a directly
48 ./fix_macos_raylib.patch
56 # tests require a graphic environment
59 pythonImportsCheck = [ "pyray" ];
69 ++ lib.optionals stdenv.hostPlatform.isDarwin [
78 description = "Python CFFI bindings for Raylib";
79 homepage = "https://electronstudio.github.io/raylib-python-cffi";
80 license = lib.licenses.epl20;
81 maintainers = with lib.maintainers; [ sigmanificient ];