Merge pull request #142013 from rnhmjoj/pr-libusb1

pythonPackages.libusb1: 1.9.3 -> 2.0.1
This commit is contained in:
Pavol Rusnak 2021-10-17 20:10:48 +02:00 committed by GitHub
commit 96e897e2ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,15 +2,15 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "libusb1"; pname = "libusb1";
version = "1.9.3"; version = "2.0.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "60e6ce37be064f6e51d02b25da44230ecc9c0b1fdb6f14568c71457d963c1749"; sha256 = "d3ba82ecf7ab6a48d21dac6697e26504670cc3522b8e5941bd28fb56cf3f6c46";
}; };
postPatch = '' postPatch = ''
substituteInPlace usb1/libusb1.py --replace \ substituteInPlace usb1/_libusb1.py --replace \
"ctypes.util.find_library(base_name)" \ "ctypes.util.find_library(base_name)" \
"'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'" "'${libusb1}/lib/libusb-1.0${stdenv.hostPlatform.extensions.sharedLibrary}'"
''; '';