diff options
author | Vincent Ambo <tazjin@google.com> | 2020-04-25T20·38+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-04-25T20·38+0100 |
commit | b597a1c1434f90065cfaa185426fdf8bb6c7e366 (patch) | |
tree | 770d2ecc9e13bb4142a06a57827d70316181cfed /third_party/python | |
parent | 9d94a727b27016e21fe904a555a3742d3c5b1eb9 (diff) |
feat(third_party/python): Vendor broadlink-python using git-subtree r/681
Diffstat (limited to 'third_party/python')
-rw-r--r-- | third_party/python/broadlink/broadlink/__init__.py | 4 | ||||
-rw-r--r-- | third_party/python/broadlink/default.nix (renamed from third_party/python/broadlink.nix) | 9 |
2 files changed, 3 insertions, 10 deletions
diff --git a/third_party/python/broadlink/broadlink/__init__.py b/third_party/python/broadlink/broadlink/__init__.py index 5253d7cfdab8..27619a136ea3 100644 --- a/third_party/python/broadlink/broadlink/__init__.py +++ b/third_party/python/broadlink/broadlink/__init__.py @@ -1114,5 +1114,5 @@ def setup(ssid, password, security_mode): sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) - sock.sendto(payload, ('255.255.255.255', 80)) + # sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) + sock.sendto(payload, ('192.168.10.1', 80)) diff --git a/third_party/python/broadlink.nix b/third_party/python/broadlink/default.nix index 75db1ef2b7af..e316d83d1d71 100644 --- a/third_party/python/broadlink.nix +++ b/third_party/python/broadlink/default.nix @@ -10,13 +10,6 @@ let in buildPythonPackage (lib.fix (self: { pname = "python-broadlink"; version = "0.13.2"; - - src = fetchFromGitHub { - owner = "mjg59"; - repo = "python-broadlink"; - rev = self.version; - sha256 = "0dwqzx294sjdc8dg1sd3z6mhll0zzsb8k0lzs63nyhm2nc9pyv6j"; - }; - + src = ./.; propagatedBuildInputs = [ cryptography ]; })) |