packages: make hash() consistent and incl features
This is a backport of 7e09102860b7e0b3f67bb9ba335dbecd2da56177 from master (PR #370).
- [ ] Added tests for changed code.
- [ ] Updated documentation for changed code.
As this is a backport to old branch that will never be merged to master, I took liberty to skip backporting tests. If you insist, I'll add them.
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Sorry for the late response here -- core is not accepting backports to the previous branch given the imminent release of Poetry 1.2. Our new release strategy will require new releases of Poetry for core bumps anyway (since we're now pinning versions), and we will likely keep core compatible with the stable version of Poetry as well as the dev branch so that we don't maintain multiple versions.
Thanks @neersighted!
Can I draw your attention to my other two PRs, that actually implement new functionality?
https://github.com/python-poetry/poetry/pull/6130 https://github.com/python-poetry/poetry/pull/6131
I can try, but given we're in the final stages of 1.2's release that's where all energies are currently going. One of your PRs is likely to receive substantial feedback and/or a refactor from @radoering once his own related refactor lands.
Thanks!