From a9f5e556cf0095be552153ed9e652bbfa82fa08c Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 13 Feb 2019 18:45:08 +0100 Subject: fetchHumbleBundle: Fix fetching products The "Product" model expects to have a "supports_canonical" attribute in the JSON Product object, which since a while is no longer there. We really don't need that attribute for our purposes, so we can simply drop the line where we do the lookup. Signed-off-by: aszlig --- pkgs/games/humblebundle/fetch-humble-bundle/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/games') diff --git a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix index 8431799b..063d4a02 100644 --- a/pkgs/games/humblebundle/fetch-humble-bundle/default.nix +++ b/pkgs/games/humblebundle/fetch-humble-bundle/default.nix @@ -98,6 +98,8 @@ postPatch = '' sed -i -e '/^LOGIN_URL *=/s,/login,/processlogin,' humblebundle/client.py + sed -i -e '/self\.supports_canonical.*data.*supports_canonical/d' \ + humblebundle/models.py ''; propagatedBuildInputs = [ pythonPackages.requests ]; -- cgit 1.4.1