(meta) "inheritance" nixpkgs - e.g. meta.license.free

If a package has pkgs in nativeBuildInputs whch are meta.license.free = false why are those attributes not inherited in the depending pkg which gets created?

e.g.
pytorch - nativeBuildInputs is cudatoolkit (free = false)

pkgs = import <nixpkgs> {} 
pkgs.cudatoolkit.meta.license
# { free = false; fullName = "Unfree"; shortName = "unfree"; }

pkgs.python38Packages.pytorch.meta.license
pkgs.python38Packages.pytorchWithCuda.meta.license
# { fullName = "BSD 3-clause \"New\" or \"Revised\" License"; shortName = "bsd3"; spdxId = "BSD-3-Clause"; url = "https://spdx.org/licenses/BSD-3-Clause.html"; }

What would be the function to query pytorchWithCuda to get the result that it is free = false (optimal to query an (meta) attribute directly)?