Latch may need some work but it does work.Use M4 screws for hinges.
Another version is to store all the hardware inside printed box to make it easier to use.