From ca6c026bbad58be28aca4125ee37264d378bfd82 Mon Sep 17 00:00:00 2001 From: Ivar Scholten Date: Sun, 9 May 2021 16:00:59 +0200 Subject: [PATCH] pythonPackages.twilio: unbreak --- pkgs/development/python-modules/twilio/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/twilio/default.nix b/pkgs/development/python-modules/twilio/default.nix index 367117e17e83c..ca6b0693129cb 100644 --- a/pkgs/development/python-modules/twilio/default.nix +++ b/pkgs/development/python-modules/twilio/default.nix @@ -22,6 +22,15 @@ buildPythonPackage rec { sha256 = "sha256-vVJuuPxVyOqnplPYrjCjIm5IyIFZvsCMoDLrrHpHK+4="; }; + # Remove overly strict version contraints + prePatch = '' + substituteInPlace setup.py --replace \ + "PyJWT == 1.7.1" "PyJWT" + + # Remove unit tests that depend on an outdated version of PyJWT + rm -r tests/unit/jwt + ''; + propagatedBuildInputs = [ pyjwt pysocks