3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyftdi/default.nix
2020-03-30 21:38:41 +00:00

25 lines
591 B
Nix

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