python3Packages.datasets: fix build after dill bump

This commit is contained in:
Martin Weinelt 2022-11-15 09:14:38 +01:00
parent ff17050b25
commit f8d028f271
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -3,6 +3,7 @@
, buildPythonPackage , buildPythonPackage
, dill , dill
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, fsspec , fsspec
, huggingface-hub , huggingface-hub
, importlib-metadata , importlib-metadata
@ -32,6 +33,14 @@ buildPythonPackage rec {
hash = "sha256-5j8HT/DzHH8xssv97g/9kpSgtpaY6daWOGwjasD1psg="; hash = "sha256-5j8HT/DzHH8xssv97g/9kpSgtpaY6daWOGwjasD1psg=";
}; };
patches = [
(fetchpatch {
# Backport support for dill<3.7
url = "https://github.com/huggingface/datasets/pull/5166.patch";
hash = "sha256-QigpXKHi2B60M/iIWSqvBU9hW5vBu6IHGML22aCMevo=";
})
];
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "responses<0.19" "responses" --replace "responses<0.19" "responses"