nixpkgs/pkgs/development/python-modules/pyftdi/default.nix

40 lines
912 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pythonOlder
, pyusb
}:
2019-05-10 23:00:09 +01:00
buildPythonPackage rec {
pname = "pyftdi";
version = "0.52.9";
2019-05-10 23:00:09 +01:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "eblot";
repo = pname;
rev = "v${version}";
sha256 = "07q9wmpl97a6laxfbcjqhv373msbsjppsyf5i77h0f6ccil0q1i6";
2019-05-10 23:00:09 +01:00
};
propagatedBuildInputs = [ pyusb pyserial ];
# tests requires access to the serial port
doCheck = false;
pythonImportsCheck = [ "pyftdi" ];
meta = with lib; {
2019-05-10 23:00:09 +01:00
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.
'';
2020-01-10 20:17:37 +00:00
homepage = "https://github.com/eblot/pyftdi";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
2019-05-10 23:00:09 +01:00
};
}