Well, I've adjusted the formula using the expression mentioned, but even though MacFSEvents is installed using pip the following message is shown:

ninja-ide: Unsatisfied dependency: MacFSEvents
Brewed Python cannot `import MacFSEvents`. Install with:
  pip-2.7 install MacFSEvents

Any suggestions how to solve this?