wsdd: 0.7.1 -> 0.8

This commit is contained in:
Izorkin 2024-04-04 10:08:26 +03:00
parent e9f2343ea6
commit 95dd498dd7
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09
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))