mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
wsdd: 0.7.1 -> 0.8
This commit is contained in:
parent
e9f2343ea6
commit
95dd498dd7
@ -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
|
||||
|
@ -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))
|
Loading…
Reference in New Issue
Block a user