Hi Bilal,
Can't argue with what Bilal Khan 777 is saying but does PN really need a high end mini submarine when, in its own words, the mini submarine project is a footnote to the main projects in the PN.
The easiest way to get rid of a project is to make the requirements overly complex and then claim its too expensive / can't be done.
Now, if Iran and North Korea can build submarines in this class, by whatever means that may be, Pakistan is perfectly capable of building the very same submarine, in fact a considerably better one given the suppliers and technologies available to the PN. You could get the deal through a middle-man that is not North Korea or Iran, to stay above controversy, upgrade some of the basic systems (get the Turkish weapons and command consoles, Chinese lithium ion batteries). And you have a cheap and effective submarine that threatens India's major ports on the Western shore.
From where I see it, KIS principle works here just fine. It also builds a submarine that has solid export potential. The expertise are coming - PN is getting ToT and hands-on training to train a new generation of Pakistani naval architects and engineers, after the 8 boats are build, PN will build nuclear SSNs and SSBNs. A mini submarine would be an easy side project.
In summary:
Blueprints, documentation, specifications from the NK / Iran via third party
Subsystems and technical support from Turkey / China (sub-assembly kits can be built by Chinese suppliers with documentation from NK / Iran)
You could, in theory, do the same with an Italian designer. As far as Italian industry is concerned, they want to sell - they are out to make a profit. The price just has to be right.