depot/third_party/nixpkgs/pkgs/development/python-modules/pyftdi/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

24 lines
591 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:
buildPythonPackage rec {
pname = "pyftdi";
version = "0.51.2";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "eblot";
repo = pname;
rev = "v${version}";
sha256 = "14mkwk44bgm6s4kqagz7nm6p6gsygmksl2628jaqh7ppblxca9as";
};
propagatedBuildInputs = [ pyusb pyserial ];
pythonImportsCheck = [ "pyftdi" ];
meta = {
description = "User-space driver for modern FTDI devices";
homepage = "https://github.com/eblot/pyftdi";
license = lib.licenses.bsd3;
};
}