pythonPackages.suds: apply patch CVE-2013-2217

This commit is contained in:
Domen Kožar 2015-10-28 11:55:24 +01:00
parent 4c026eee39
commit d60718d57a
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,19 @@
--- suds.orig/suds/cache.py 2013-06-29 16:26:16.930326017 +0200
+++ suds.orig/suds/cache.py 2013-06-29 16:02:15.000000000 +0200
@@ -19,6 +19,7 @@
"""
import os
+import tempfile
import suds
from tempfile import gettempdir as tmp
from suds.transport import *
@@ -138,7 +139,7 @@
@type duration: {unit:value}
"""
if location is None:
- location = os.path.join(tmp(), 'suds')
+ location = tempfile.mkdtemp()
self.location = location
self.duration = (None, 0)
self.setduration(**duration)

View File

@ -20570,9 +20570,11 @@ let
src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/s/suds/suds-0.4.tar.gz";
md5 = "b7502de662341ed7275b673e6bd73191";
sha256 = "1w4s9051iv90c0gs73k80c3d51y2wbx1xgfdgg2hk7mv4gjlllnm";
};
patches = [ ../development/python-modules/suds-0.4-CVE-2013-2217.patch ];
meta = with stdenv.lib; {
description = "Lightweight SOAP client";
homepage = https://fedorahosted.org/suds;