Merge pull request #14983 from adnelson/httpretty_python3
httpretty: working build for python3
This commit is contained in:
commit
50b7a542fe
11
pkgs/development/python-modules/httpretty/setup.py.patch
Normal file
11
pkgs/development/python-modules/httpretty/setup.py.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- 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 = \
|
@ -10500,7 +10500,6 @@ in modules // {
|
|||||||
httpretty = buildPythonPackage rec {
|
httpretty = buildPythonPackage rec {
|
||||||
name = "httpretty-${version}";
|
name = "httpretty-${version}";
|
||||||
version = "0.8.6";
|
version = "0.8.6";
|
||||||
disabled = isPy3k;
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
@ -10522,6 +10521,10 @@ in modules // {
|
|||||||
--- 566 ----
|
--- 566 ----
|
||||||
! 'content-length': str(len(self.body))
|
! 'content-length': str(len(self.body))
|
||||||
DIFF
|
DIFF
|
||||||
|
|
||||||
|
# Explicit encoding flag is required with python3, unless locale is set.
|
||||||
|
${if !self.isPy3k then "" else
|
||||||
|
"patch -p0 -i ${../development/python-modules/httpretty/setup.py.patch}"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user