From 49decc7aeaa3a9a5b12121661c1992cce87d21f9 Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Tue, 5 Apr 2022 16:28:37 -0400 Subject: [PATCH] fix test issues with s3transfer in dbt-redshift --- nix/dbt-redshift/default.nix | 3 +++ nix/overlay.nix | 12 ++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/nix/dbt-redshift/default.nix b/nix/dbt-redshift/default.nix index 572d8da..465a933 100644 --- a/nix/dbt-redshift/default.nix +++ b/nix/dbt-redshift/default.nix @@ -7,6 +7,9 @@ let inputs = [ typing-extensions jinja2 dbt-postgres + # we needed to override the test phase so + # we have to include it from the overlay here. + s3transfer #jinja2_3 ]; in diff --git a/nix/overlay.nix b/nix/overlay.nix index 173c1bb..60596c2 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -126,14 +126,10 @@ sha256 = "sha256-ScWDjZDoMheQnbN4nTChBThbXmluxRaM2mRVRsVC81o="; }; }); - #jinja2_3 = pysuper.jinja2.overrideAttrs (oldAttrs: rec { - # version = "3.0.0"; - # pname = oldAttrs.pname; - # src = pyself.fetchPypi { - # inherit pname version; - # sha256 = "sha256-6o192BTOnfbeanYex/HKyYr+MFuM3Eqq5OEUuNjOJMU="; - # }; - #}); + s3transfer = pysuper.s3transfer.overrideAttrs (oldAttres: rec { + # The tests use the network so disable for now. + doCheck = false; + }); logbook = with pyself; buildPythonPackage rec { pname = "Logbook"; version = "1.5.3";