mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00

They are not doing anything right now. This is in preparation for their complete removal from the tree. Note: several changes that affect the derivation inputs (e.g. removal of references to stub paths in build instructions) were left out. They will be cleaned up the next iteration and will require special care. Note: this PR is a result of a mix of ugly regex (not AST) based automation and some manual labor. For reference, the regex automation part was hacked in: https://github.com/booxter/nix-clean-apple_sdk Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
|
gcc,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
cffi,
|
|
pkg-config,
|
|
glfw,
|
|
libffi,
|
|
raylib,
|
|
physac,
|
|
raygui,
|
|
lib,
|
|
writers,
|
|
raylib-python-cffi,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "raylib-python-cffi";
|
|
version = "5.5.0.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "electronstudio";
|
|
repo = "raylib-python-cffi";
|
|
tag = "v${version}";
|
|
hash = "sha256-Ls+9+iByGQJQJdJiW4WOmKPGbrWJDisXZ1ZYqvAj+3o=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
dependencies = [ cffi ];
|
|
|
|
patches = [
|
|
# This patch fixes to the builder script function to call pkg-config
|
|
# using the library name rather than searching only through raylib
|
|
./fix_pyray_builder.patch
|
|
|
|
# use get_lib_flags() instead of linking to libraylib.a directly
|
|
./fix_macos_raylib.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gcc
|
|
];
|
|
|
|
# tests require a graphic environment
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyray" ];
|
|
|
|
buildInputs = [
|
|
glfw
|
|
libffi
|
|
raylib
|
|
physac
|
|
raygui
|
|
];
|
|
|
|
passthru.tests = import ./passthru-tests.nix {
|
|
inherit src raylib-python-cffi writers;
|
|
};
|
|
|
|
meta = {
|
|
description = "Python CFFI bindings for Raylib";
|
|
homepage = "https://electronstudio.github.io/raylib-python-cffi";
|
|
license = lib.licenses.epl20;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
}
|