pythonPackages.suds: apply patch CVE-2013-2217
This commit is contained in:
parent
4c026eee39
commit
d60718d57a
19
pkgs/development/python-modules/suds-0.4-CVE-2013-2217.patch
Normal file
19
pkgs/development/python-modules/suds-0.4-CVE-2013-2217.patch
Normal 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)
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user