Is it legal for a package to depend on a development package?

Packages in the section devel are packages needed for development purpuses.

It is absolutely fine when another package (even if itself is in the devel-section) depends on a package in the devel-section if you need the functionality of this package.