mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
Merge pull request #249050 from fabaff/pylibftdi-bump
python311Packages.pylibftdi: 0.20.0 -> 0.21.0
This commit is contained in:
commit
841d23565e
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user