In general, all source code is covered by the GNU General Public License (GPL) with the following exceptions:
The backend is covered by a MIT license.
The printer driver "HPIJS" uses a BSD license.
See the COPYING file in the HPLIP tarball for more details.