2020-03-28 10:17:30 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:
|
2019-05-10 23:00:09 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyftdi";
|
2020-05-24 01:04:35 +01:00
|
|
|
version = "0.51.2";
|
2019-05-10 23:00:09 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2020-03-28 10:17:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eblot";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-24 01:04:35 +01:00
|
|
|
sha256 = "14mkwk44bgm6s4kqagz7nm6p6gsygmksl2628jaqh7ppblxca9as";
|
2019-05-10 23:00:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyusb pyserial ];
|
|
|
|
|
2020-03-28 10:17:30 +00:00
|
|
|
pythonImportsCheck = [ "pyftdi" ];
|
|
|
|
|
2019-05-10 23:00:09 +01:00
|
|
|
meta = {
|
|
|
|
description = "User-space driver for modern FTDI devices";
|
2020-01-10 20:17:37 +00:00
|
|
|
homepage = "https://github.com/eblot/pyftdi";
|
2020-03-28 10:17:30 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2019-05-10 23:00:09 +01:00
|
|
|
};
|
|
|
|
}
|