diff --git a/pkgs/development/python-modules/datasets/default.nix b/pkgs/development/python-modules/datasets/default.nix index 37f557271540f..ea92c1c770c8f 100644 --- a/pkgs/development/python-modules/datasets/default.nix +++ b/pkgs/development/python-modules/datasets/default.nix @@ -16,6 +16,7 @@ , responses , tqdm , xxhash +, fetchpatch }: buildPythonPackage rec { @@ -32,6 +33,13 @@ buildPythonPackage rec { hash = "sha256-5j8HT/DzHH8xssv97g/9kpSgtpaY6daWOGwjasD1psg="; }; + patches = [ + (fetchpatch { # add compatibility with dill 0.3.6 + url = "https://github.com/huggingface/datasets/pull/5166.patch"; + sha256 = "sha256-QigpXKHi2B60M/iIWSqvBU9hW5vBu6IHGML22aCMevo="; + }) + ]; + postPatch = '' substituteInPlace setup.py \ --replace "responses<0.19" "responses"