nixpkgs/pkgs/development/python-modules/pyftdi/default.nix
2020-05-24 00:04:35 +00:00

25 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;
};
}