Turkey got few steps further:
Almost all ready made software recently become practically illegal to obtain in government tenders in Turkey due to "usability guarantee" requirement. Exact article translated (from the presidential administrative decree):
All software and hardware contractors working for
Turkish government shall provide a guarantee stating
said soft/hard-ware does not contain backdoors and/or
features unfit for intended use, as far as possible.
Servers for goverment services are also required to be in Turkey, even if it is not possible to set up one in situ in the respective institution. This goes so far to require all data processor to have their own or peered IXPs situated in Turkey.