I’ve been going through some failed Python builds in the current Zero Hydra Failures and have found a couple packages that have the issue of having dependencies limited to an older release and nixpkgs containing a newer version.
For example, twilio
depends on "PyJWT == 1.7.1"
according to setup.py
. However, pyjwt
in Nixpkgs is currently at version 2.1.0
which makes the version check fail. Looking upstream, the change for this does not seem trivial, so just patching upstream is out of the question:
https://github.com/twilio/twilio-python/issues/556
I also just tried to bump the dependency version but as expected, this produced a ton of unit test failures.
I am wondering what the correct course of action is for the fix. Can I make pyjwt come from an older nixpkgs commit that still contained 1.7.1?