lol

httpretty: working build for python3

+14 -1
+11
pkgs/development/python-modules/httpretty/setup.py.patch
··· 1 + --- setup.py 2016-04-18 10:44:27.915536022 -0500 2 + +++ setup-new.py 2016-04-18 10:44:13.515537377 -0500 3 + @@ -75,7 +75,7 @@ 4 + 5 + 6 + local_file = lambda *f: \ 7 + - open(os.path.join(os.path.dirname(__file__), *f)).read() 8 + + open(os.path.join(os.path.dirname(__file__), *f), encoding="utf-8").read() 9 + 10 + 11 + install_requires, dependency_links = \
+3 -1
pkgs/top-level/python-packages.nix
··· 10420 10420 httpretty = buildPythonPackage rec { 10421 10421 name = "httpretty-${version}"; 10422 10422 version = "0.8.6"; 10423 - disabled = isPy3k; 10424 10423 doCheck = false; 10425 10424 10426 10425 src = pkgs.fetchurl { ··· 10442 10441 --- 566 ---- 10443 10442 ! 'content-length': str(len(self.body)) 10444 10443 DIFF 10444 + 10445 + # Explicit encoding flag is required with python3, unless locale is set. 10446 + patch -p0 -i ${../development/python-modules/httpretty/setup.py.patch} 10445 10447 ''; 10446 10448 10447 10449 meta = {