We present the particular case of the Stephani solution for shear-free perfect fluid with uniform energy density and nonuniform pressure. Such models appeared as possible alternative to the consideration of the exotic forms of matter like dark energy that would cause the acceleration of universe expansion. These models are characterized by the spatial curvature, depending on time. We analyze the properties of the cosmological model obtained on the basis of exact solution of the Stephani class, and adapt it to the recent observational data. The spatial geometry of the model is investigated. We show that despite possible singularities, the model can describe the current stage of the universe's evolution.