1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:
2
3buildPythonPackage rec {
4 pname = "pyftdi";
5 version = "0.51.2";
6 disabled = pythonOlder "3.5";
7
8 src = fetchFromGitHub {
9 owner = "eblot";
10 repo = pname;
11 rev = "v${version}";
12 sha256 = "14mkwk44bgm6s4kqagz7nm6p6gsygmksl2628jaqh7ppblxca9as";
13 };
14
15 propagatedBuildInputs = [ pyusb pyserial ];
16
17 pythonImportsCheck = [ "pyftdi" ];
18
19 meta = {
20 description = "User-space driver for modern FTDI devices";
21 homepage = "https://github.com/eblot/pyftdi";
22 license = lib.licenses.bsd3;
23 };
24}