From 6a50e2a6c3f609159eac8f8a69a638361c6250df Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 5 Aug 2022 18:57:19 +0200 Subject: [PATCH] packages/dvc: enable AWS S3 support --- packages/patched-derivations.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/patched-derivations.nix b/packages/patched-derivations.nix index 5cb6f29..275ce0b 100644 --- a/packages/patched-derivations.nix +++ b/packages/patched-derivations.nix @@ -3,7 +3,18 @@ let pins = import ./sources; in with tools; super: rec { - dvc = patch super.dvc "patches/base/dvc"; + dvc = patch (super.dvc.overrideAttrs (old: { + propagatedBuildInputs = with super.python3Packages; old.propagatedBuildInputs ++ [ + aiobotocore + boto3 + (s3fs.overrideAttrs (_: { postPatch = '' + substituteInPlace requirements.txt \ + --replace "fsspec==2022.02.0" "fsspec" \ + --replace "aiobotocore~=2.1.0" "aiobotocore" + ''; + })) + ]; + })) "patches/base/dvc"; hydra = (patch super.hydra-unstable "patches/base/hydra").override { nix = super.nixVersions.nix_2_8; };