Merge pull request #249050 from fabaff/pylibftdi-bump

python311Packages.pylibftdi: 0.20.0 -> 0.21.0
This commit is contained in:
Fabian Affolter 2023-08-14 12:11:39 +02:00 committed by GitHub
commit 841d23565e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "pylibftdi";
version = "0.20.0";
version = "0.21.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "f4a87fc4af2c9c7d42badd4192ca9b529f32c9d96fdc8daea7e29c509226df5f";
hash = "sha256-634vUFKFJUf0xsRgIqFmX510U0OWORcereVv3ICliDI=";
};
propagatedBuildInputs = [
@ -24,7 +24,7 @@ buildPythonPackage rec {
];
postPatch = ''
substituteInPlace pylibftdi/driver.py \
substituteInPlace src/pylibftdi/driver.py \
--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')"
'';
@ -34,8 +34,9 @@ buildPythonPackage rec {
];
meta = with lib; {
homepage = "https://pylibftdi.readthedocs.io/";
description = "Wrapper to Intra2net's libftdi driver for FTDI's USB devices";
homepage = "https://pylibftdi.readthedocs.io/";
changelog = "https://github.com/codedstructure/pylibftdi/blob/${version}0/CHANGES.txt";
license = licenses.mit;
maintainers = with maintainers; [ matthuszagh ];
};