forked from mirrors/nixpkgs
Merge pull request #107982 from fabaff/bump-pyftdi
This commit is contained in:
commit
9d0722f663
|
@ -1,24 +1,39 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyserial
|
||||
, pythonOlder
|
||||
, pyusb
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyftdi";
|
||||
version = "0.51.2";
|
||||
version = "0.52.0";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eblot";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "14mkwk44bgm6s4kqagz7nm6p6gsygmksl2628jaqh7ppblxca9as";
|
||||
sha256 = "0nm4z7v9qcb9mxqbl21jgzica4faldnpy5qmbkrc6scnx55pxfm9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyusb pyserial ];
|
||||
|
||||
# tests requires access to the serial port
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "pyftdi" ];
|
||||
|
||||
meta = {
|
||||
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 = lib.licenses.bsd3;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue