In this paper we consider an optimal control problem governed by a system of nonlinear hyperbolic partial differential equations with deviating argument, Darboux-type boundary conditions and terminal state inequality constraints. The control variables are assumed to be measurable and the state variables are assumed to belong to a Sobolev space. We derive an integral representation of the increments of the functionals involved, and using separation theorems of functional analysis, obtain necessary conditions for optimality in the form of a Pontryagin maximum principle. The approach presented here applies equally well to other nonlinear constrained distributed parameters with deviating argument.