The requirements for patentability

Describe the requirements for patentability and what is considered non-obvious.