It isn't open-source in the "FOSS" sense. You can't have such terms in a FOSS license.
However, you can have parts of a codebase be FOSS licensed, if the license is compatible with non-FOSS code. BSD, MIT and Apache licenses allow this, copyleft licenses like the GPL don't.