In a 2019 answer that the bot has just pumped there is an excellent description of a way I have heard about how copyright derivation works with respect to software libraries:
I don't know if software that imports/includes other software is considered "derivative", but legally it probably has to do with the ability of your software to use another module that performs similar functionality. If your software calls an API which is instantiated in multiple libraries, then it probably isn't derivative. If the API is unique enough to a specific library, then a court might rule it "derivative". For example, I have a program that uses either BSD-licensed Editline, or GPL-licensed GNU Readline. My understanding is that because the API that I use is the same for both, installing my software on a machine that uses Readline doesn't mean my software must be GPL. Please note that I could be wrong.
Is there anything we could quote to support (or refute) this statement that is more authoritative that open source advocates saying it online? Is this based on laws as written, judgements or legal theories by respected legal scholars?