mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
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 <aszlig@redmoonstudios.org>
This commit is contained in:
parent
79d22ae015
commit
d5ac1cac27
@ -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 <<DIFF
|
||||
***************
|
||||
*** 566 ****
|
||||
! 'content-length': len(self.body)
|
||||
--- 566 ----
|
||||
! 'content-length': str(len(self.body))
|
||||
DIFF
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://falcao.it/HTTPretty/";
|
||||
description = "HTTP client request mocking tool";
|
||||
license = licenses.mit;
|
||||
};
|
||||
};
|
||||
|
||||
importlib = if isPy26 then (buildPythonPackage {
|
||||
name = "importlib-1.0.2";
|
||||
src = fetchurl {
|
||||
|
Loading…
Reference in New Issue
Block a user