python: httpretty: 0.9.5 -> 0.9.6
This commit is contained in:
parent
86045f2139
commit
f7fc606b62
|
@ -14,32 +14,17 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "httpretty";
|
pname = "httpretty";
|
||||||
version = "0.9.5";
|
version = "0.9.6";
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
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 ];
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://falcao.it/HTTPretty/";
|
homepage = "https://falcao.it/HTTPretty/";
|
||||||
|
|
|
@ -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 = \
|
|
Loading…
Reference in New Issue