From 2da548f856996a5c9bc56d28758d0f3ab49307c7 Mon Sep 17 00:00:00 2001 From: David Leung Date: Tue, 7 May 2019 08:06:03 +0800 Subject: [PATCH] pythonPackages.serverlessrepo: fix build by pinning pyyaml at 3.12 --- .../python-modules/serverlessrepo/default.nix | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/serverlessrepo/default.nix b/pkgs/development/python-modules/serverlessrepo/default.nix index d70abe1f95fd..7c89d9d1f8d9 100644 --- a/pkgs/development/python-modules/serverlessrepo/default.nix +++ b/pkgs/development/python-modules/serverlessrepo/default.nix @@ -1,13 +1,24 @@ { lib -, buildPythonPackage -, fetchPypi -, pytest -, boto3 -, six -, pyyaml -, mock +, python }: +let + py = python.override { + packageOverrides = self: super: { + pyyaml = super.pyyaml.overridePythonAttrs (oldAttrs: rec { + version = "3.12"; + src = oldAttrs.src.override { + inherit version; + sha256 = "592766c6303207a20efc445587778322d7f73b161bd994f227adaa341ba212ab"; + }; + }); + }; + }; + +in + +with py.pkgs; + buildPythonPackage rec { pname = "serverlessrepo"; version = "0.1.8";