From a3ef1ad66c7867f78e64eca8352ab20ac53bac23 Mon Sep 17 00:00:00 2001 From: Allen Nelson Date: Mon, 25 Apr 2016 12:25:01 -0500 Subject: [PATCH] httpretty: make patch conditional on python version --- pkgs/top-level/python-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 89b8bebf9c04..87dab9a52c8f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10443,7 +10443,8 @@ in modules // { DIFF # Explicit encoding flag is required with python3, unless locale is set. - patch -p0 -i ${../development/python-modules/httpretty/setup.py.patch} + ${if !self.isPy3k then "" else + "patch -p0 -i ${../development/python-modules/httpretty/setup.py.patch}"} ''; meta = {