diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-07-11 06:09:00 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-07-11 06:16:12 +0200 |
commit | d5ac1cac273b98459b15ccfeceaad6c327730821 (patch) | |
tree | 2e13a63b1a989c689af1db0e7a4da518eacf8d17 | |
parent | 79d22ae0151fe198ee34181dfff4183260ffccd2 (diff) | |
download | nixpkgs-d5ac1cac273b98459b15ccfeceaad6c327730821.tar nixpkgs-d5ac1cac273b98459b15ccfeceaad6c327730821.tar.gz nixpkgs-d5ac1cac273b98459b15ccfeceaad6c327730821.tar.bz2 nixpkgs-d5ac1cac273b98459b15ccfeceaad6c327730821.tar.lz nixpkgs-d5ac1cac273b98459b15ccfeceaad6c327730821.tar.xz nixpkgs-d5ac1cac273b98459b15ccfeceaad6c327730821.tar.zst nixpkgs-d5ac1cac273b98459b15ccfeceaad6c327730821.zip |
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>
-rw-r--r-- | pkgs/top-level/python-packages.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 13e9c1ac9e7..2cbb24f15a2 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 <<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 { |