Merge pull request #301463 from Izorkin/update-wsdd

wsdd: 0.7.1 -> 0.8
This commit is contained in:
Mario Rodas 2024-04-04 07:04:31 -05:00 committed by GitHub
commit 4f7b6bb694
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 21 deletions

View file

@ -2,13 +2,13 @@
stdenv.mkDerivation rec {
pname = "wsdd";
version = "0.7.1";
version = "0.8";
src = fetchFromGitHub {
owner = "christgau";
repo = pname;
rev = "v${version}";
hash = "sha256-xfZVGi3OxuRI+Zh6L3Ru4J4j5BB1EAN3fllRCVA/c5o=";
hash = "sha256-T8/XlQpx4CtNy8LuLwOQBG9muFe9pp5583tDaCT4ReI=";
};
outputs = [ "out" "man" ];
@ -17,12 +17,6 @@ stdenv.mkDerivation rec {
buildInputs = [ python3 ];
patches = [
# Increase timeout to socket urlopen
# See https://github.com/christgau/wsdd/issues/80#issuecomment-76848906
./increase_timeout.patch
];
installPhase = ''
install -Dm0555 src/wsdd.py $out/bin/wsdd
installManPage man/wsdd.8

View file

@ -1,13 +0,0 @@
diff --git a/src/wsdd.py b/src/wsdd.py
index 88a7a2a..360e4f7 100755
--- a/src/wsdd.py
+++ b/src/wsdd.py
@@ -699,7 +699,7 @@ class WSDClient(WSDUDPMessageHandler):
request.add_header('Host', host)
try:
- with urllib.request.urlopen(request, None, 2.0) as stream:
+ with urllib.request.urlopen(request, None, 5.0) as stream:
self.handle_metadata(stream.read(), endpoint, xaddr)
except urllib.error.URLError as e:
logger.warning('could not fetch metadata from: {} {}'.format(url, e))