11 buildPythonPackage rec {
16 disabled = pythonOlder "3.7";
19 inherit pname version;
20 hash = "sha256-v1tMa6c9eab234ScNFsAunY9AjIBvtm6Udh2pDl7Ftg=";
23 build-system = [ poetry-core ];
31 substituteInPlace src/pylibftdi/driver.py \
32 --replace-fail 'self._load_library("libusb")' 'cdll.LoadLibrary("${libusb1.out}/lib/libusb-1.0.so")' \
33 --replace-fail 'self._load_library("libftdi")' 'cdll.LoadLibrary("${libftdi1.out}/lib/libftdi1.so")'
36 pythonImportsCheck = [ "pylibftdi" ];
39 description = "Wrapper to Intra2net's libftdi driver for FTDI's USB devices";
40 homepage = "https://pylibftdi.readthedocs.io/";
41 changelog = "https://github.com/codedstructure/pylibftdi/blob/${version}/CHANGES.txt";
42 license = licenses.mit;
43 maintainers = with maintainers; [ matthuszagh ];