Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
950 B · 46 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, buildPythonPackage, fetchFromGitHub, pyserial, pythonOlder, pyusb}:
buildPythonPackage rec { pname = "pyftdi"; version = "0.54.0"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "eblot"; repo = pname; rev = "v${version}"; hash = "sha256-vL8jSgTtDvaHuCvaCYmFixILQFasTl82yINL5yRtOwU="; };
propagatedBuildInputs = [ pyserial pyusb ];
# Tests require access to the serial port doCheck = false;
pythonImportsCheck = [ "pyftdi" ];
meta = with lib; { description = "User-space driver for modern FTDI devices"; longDescription = '' PyFtdi aims at providing a user-space driver for popular FTDI devices. This includes UART, GPIO and multi-serial protocols (SPI, I2C, JTAG) bridges. ''; homepage = "https://github.com/eblot/pyftdi"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; };}