feat(third_party/python): Vendor broadlink-python using git-subtree
This commit is contained in:
parent
9d94a727b2
commit
b597a1c143
2 changed files with 3 additions and 10 deletions
|
@ -1114,5 +1114,5 @@ def setup(ssid, password, security_mode):
|
||||||
sock = socket.socket(socket.AF_INET, # Internet
|
sock = socket.socket(socket.AF_INET, # Internet
|
||||||
socket.SOCK_DGRAM) # UDP
|
socket.SOCK_DGRAM) # UDP
|
||||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
|
# sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
|
||||||
sock.sendto(payload, ('255.255.255.255', 80))
|
sock.sendto(payload, ('192.168.10.1', 80))
|
||||||
|
|
|
@ -10,13 +10,6 @@ let
|
||||||
in buildPythonPackage (lib.fix (self: {
|
in buildPythonPackage (lib.fix (self: {
|
||||||
pname = "python-broadlink";
|
pname = "python-broadlink";
|
||||||
version = "0.13.2";
|
version = "0.13.2";
|
||||||
|
src = ./.;
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "mjg59";
|
|
||||||
repo = "python-broadlink";
|
|
||||||
rev = self.version;
|
|
||||||
sha256 = "0dwqzx294sjdc8dg1sd3z6mhll0zzsb8k0lzs63nyhm2nc9pyv6j";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ cryptography ];
|
propagatedBuildInputs = [ cryptography ];
|
||||||
}))
|
}))
|
Loading…
Reference in a new issue