From 271da09326c2c72e7a7c15c261419a5e8a6257c5 Mon Sep 17 00:00:00 2001 From: ahiaao Date: Sun, 17 Nov 2019 19:18:30 -0800 Subject: [PATCH] python37Packages.PyLD: fix behavior to terminate generators --- pkgs/development/python-modules/PyLD/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/PyLD/default.nix b/pkgs/development/python-modules/PyLD/default.nix index 0862fa63072d..e6ee742ba45a 100644 --- a/pkgs/development/python-modules/PyLD/default.nix +++ b/pkgs/development/python-modules/PyLD/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildPythonPackage, fetchFromGitHub, python, gnugrep }: +{ stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, python, gnugrep }: let @@ -29,6 +29,14 @@ buildPythonPackage { sha256 = "1bmpz4s6j7by6l45wwxy7dn7hmrhxc26kbx2hbfy41x29vbjg6j9"; }; + patches = [ + # Fix tests on Python 3. Remove with the next release + (fetchpatch { + url = "https://github.com/digitalbazaar/pyld/commit/ec4bd907b7fbd566e1f6c76d09676e4900e3dcd0.patch"; + sha256 = "0i5phs5qnq4bjsb72if1sbfg751qc14qbdskqn0xhlzx0r75l7za"; + }) + ]; + # Unfortunately PyLD does not pass all testcases in the JSON-LD corpus. We # check for at least a minimum amount of successful tests so we know it's not # getting worse, at least.