From 784efe781608c8ebf196c63bfd8c994921f4a828 Mon Sep 17 00:00:00 2001 From: Wael Nasreddine Date: Sat, 20 Jul 2019 00:14:05 -0700 Subject: [PATCH] awscli: fix the tests by patching pyyaml (#65134) The checkPhase of the pyyaml dependency of awscli was failing due to running the tests with a newer version of libyaml. --- pkgs/tools/admin/awscli/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/admin/awscli/default.nix b/pkgs/tools/admin/awscli/default.nix index a4817d58a7d1..f8a68bc6f648 100644 --- a/pkgs/tools/admin/awscli/default.nix +++ b/pkgs/tools/admin/awscli/default.nix @@ -2,6 +2,7 @@ , python , groff , less +, fetchpatch }: let @@ -27,7 +28,11 @@ let inherit version; sha256 = "3ef3092145e9b70e3ddd2c7ad59bdd0252a94dfe3949721633e41344de00a6bf"; }; - doCheck = false; + # https://github.com/yaml/pyyaml/issues/298#issuecomment-511990948 + patches = lib.singleton (fetchpatch { + url = "https://github.com/yaml/pyyaml/commit/c5b135fe39d41cffbdc006f28ccb2032df6005e0.patch"; + sha256 = "0x1v45rkmj194c41d1nqi3ihj9z4rsy8zvpfcd8p960g1fia7fhn"; + }); }); }; };