2020-03-28 10:17:30 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:
|
2019-05-10 22:00:09 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyftdi";
|
2020-03-28 10:17:30 +00:00
|
|
|
version = "0.49.0";
|
2019-05-10 22:00:09 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2020-03-28 10:17:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eblot";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "063kwvgw7g4nn09pyqwqy72vnhzw0aajg23bi32vr0k49g8fx27s";
|
2019-05-10 22:00:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyusb pyserial ];
|
|
|
|
|
2020-03-28 10:17:30 +00:00
|
|
|
pythonImportsCheck = [ "pyftdi" ];
|
|
|
|
|
2019-05-10 22:00:09 +00: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 22:00:09 +00:00
|
|
|
};
|
|
|
|
}
|