Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / scapy / find-library.patch
blobbd3a44fd83ea436e79f4aefccbbc276253393d07
1 diff -uNr a/scapy/libs/winpcapy.py b/scapy/libs/winpcapy.py
2 --- a/scapy/libs/winpcapy.py 1970-01-01 01:00:01.000000000 +0100
3 +++ b/scapy/libs/winpcapy.py 2022-08-12 17:57:52.830224862 +0200
4 @@ -33,7 +33,7 @@
5 else:
6 # Try to load libpcap
7 SOCKET = c_int
8 - _lib_name = find_library("pcap")
9 + _lib_name = "@libpcap_file@"
10 if not _lib_name:
11 raise OSError("Cannot find libpcap.so library")
12 _lib = CDLL(_lib_name)