From d5ac1cac273b98459b15ccfeceaad6c327730821 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 11 Jul 2014 06:09:00 +0200 Subject: [PATCH] python-packages: Add package 'httpretty', v0.8.3. This contains a context diff because the change is really very small and gabrielfalcao/HTTPretty#180 cannot be used because it bumps the version number. The reason I'm not using sed here is because I deliberately want the postPatch phase to fail for the next upstream version, so the patch/fix is dropped on our side ASAP. Signed-off-by: aszlig --- pkgs/top-level/python-packages.nix | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 13e9c1ac9e7c..2cbb24f15a23 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3709,6 +3709,38 @@ rec { }; }; + httpretty = buildPythonPackage rec { + name = "httpretty-${version}"; + version = "0.8.3"; + + src = fetchurl { + url = "http://pypi.python.org/packages/source/h/httpretty/${name}.tar.gz"; + md5 = "50b02560a49fe928c90c53a49791f621"; + }; + + buildInputs = [ tornado requests httplib2 sure nose coverage ]; + + propagatedBuildInputs = [ urllib3 ]; + + postPatch = '' + sed -i -e 's/==.*$//' *requirements.txt + # XXX: Drop this after version 0.8.4 is released. + patch httpretty/core.py <