How to include an OBS package in BuildRequires?

Hi, my package won’t compile on Leap unless it uses a newer version of SDL2 provided by the Games repository.
Can I somehow include an OBS package in BuildRequires?

Branch it to your OBS-Project.

@asdhio Add games repos as a build target is better or link the package…

IIRC your goal is to submit your changes to games repository. In which case it makes sense to actually build against this repository, not against vanilla Leap. BuildRequires are searched for in the project where package is located and in repositories listed in path in the project configuration (Meta tab in OBS web GUI, osc meta using command line).

and in repositories listed in path in the project configuration

How do I do that? The Meta tab only shows the package name, its title and description.
And if I set a version requirement for BuildRequires, it fails because it tries to build against Leap.
I tried including an _aggregate file, but that resulted in no log being shown at all, automatically resulting in a “successful” build for all platforms.

It is project meta, not package meta.