Merge pull request #86602 from matthuszagh/pylibftdi
pylibftdi: point to correct libusb library
This commit is contained in:
commit
434cf0fe6a
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, httpserver
|
||||
, libftdi1
|
||||
, libusb1
|
||||
}:
|
||||
|
@ -16,14 +15,13 @@ buildPythonPackage rec {
|
|||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
httpserver
|
||||
libftdi1
|
||||
libusb1
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pylibftdi/driver.py \
|
||||
--replace "self._load_library('libusb')" "cdll.LoadLibrary('${libusb1.out}/lib/libusb1.so')" \
|
||||
--replace "self._load_library('libusb')" "cdll.LoadLibrary('${libusb1.out}/lib/libusb-1.0.so')" \
|
||||
--replace "self._load_library('libftdi')" "cdll.LoadLibrary('${libftdi1.out}/lib/libftdi1.so')"
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue