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 {
|
buildPythonPackage rec {
|
||||||
pname = "pyftdi";
|
pname = "pyftdi";
|
||||||
version = "0.51.2";
|
version = "0.52.0";
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "eblot";
|
owner = "eblot";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "14mkwk44bgm6s4kqagz7nm6p6gsygmksl2628jaqh7ppblxca9as";
|
sha256 = "0nm4z7v9qcb9mxqbl21jgzica4faldnpy5qmbkrc6scnx55pxfm9";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyusb pyserial ];
|
propagatedBuildInputs = [ pyusb pyserial ];
|
||||||
|
|
||||||
|
# tests requires access to the serial port
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "pyftdi" ];
|
pythonImportsCheck = [ "pyftdi" ];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "User-space driver for modern FTDI devices";
|
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";
|
homepage = "https://github.com/eblot/pyftdi";
|
||||||
license = lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user