python: httpretty: 0.9.5 -> 0.9.6

This commit is contained in:
Frederik Rietdijk 2018-11-11 14:47:25 +01:00
parent 86045f2139
commit f7fc606b62
2 changed files with 3 additions and 29 deletions

View File

@ -14,32 +14,17 @@
buildPythonPackage rec {
pname = "httpretty";
version = "0.9.5";
version = "0.9.6";
doCheck = false;
src = fetchPypi {
inherit pname version;
sha256 = "543fa2bd9c319bfa1e1de9e37d7c9c08fa926a692b65b0be5df4b2f069fd0ad7";
sha256 = "01b52d45077e702eda491f4fe75328d3468fd886aed5dcc530003e7b2b5939dc";
};
buildInputs = [ tornado requests httplib2 sure nose coverage certifi ];
checkInputs = [ tornado requests httplib2 sure nose coverage certifi ];
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
# Explicit encoding flag is required with python3, unless locale is set.
${if !isPy3k then "" else
"patch -p0 -i ${./setup.py.patch}"}
'';
meta = with stdenv.lib; {
homepage = "https://falcao.it/HTTPretty/";

View File

@ -1,11 +0,0 @@
--- setup.py 2016-04-18 10:44:27.915536022 -0500
+++ setup-new.py 2016-04-18 10:44:13.515537377 -0500
@@ -75,7 +75,7 @@
local_file = lambda *f: \
- open(os.path.join(os.path.dirname(__file__), *f)).read()
+ open(os.path.join(os.path.dirname(__file__), *f), encoding="utf-8").read()
install_requires, dependency_links = \