I mean Mail.app extension that is put into /Library/Mail/Bundles folder.
Unfortunately, it's a purchased proprietary software. No access to source code.
I am seeing two options now:
1) build calibre 4 on 10.11 after building all dependencies. At the moment I'm seeing this error
https://bugs.launchpad.net/calibre/+bug/1807369 and I guess I have to make sure sip and PyQt5 are compatible.
2) build calibre 4 on 10.12 VM following your instructions and after that try to use it on 10.11
Do you think calibre 4 built on 10.12 runs on 10.11?