summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyftdi/default.nix
blob: d73ee24f584774433e53b13c120565c15d5441f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:

buildPythonPackage rec {
  pname = "pyftdi";
  version = "0.49.0";
  disabled = pythonOlder "3.5";

  src = fetchFromGitHub {
    owner = "eblot";
    repo = pname;
    rev = "v${version}";
    sha256 = "063kwvgw7g4nn09pyqwqy72vnhzw0aajg23bi32vr0k49g8fx27s";
  };

  propagatedBuildInputs = [ pyusb pyserial ];

  pythonImportsCheck = [ "pyftdi" ];

  meta = {
    description = "User-space driver for modern FTDI devices";
    homepage = "https://github.com/eblot/pyftdi";
    license = lib.licenses.bsd3;
  };
}