Would Precision Attack apply for a melee spell attack?

I’ve searched here and in various reference books but can’t find this specific answer. The description of the Battlemaster Precision Attack maneuver states it can be used for any weapon attack. Thorn Whip for example uses magic to create a weapon….that is not magic. So would that "weapon" attack count towards as being able to used with Precision Attack even though the attack is using a spell?