nixpkgs/pkgs/development/python-modules/pyftdi/default.nix

25 lines
591 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:
2019-05-10 22:00:09 +00:00
buildPythonPackage rec {
pname = "pyftdi";
version = "0.49.0";
2019-05-10 22:00:09 +00:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "eblot";
repo = pname;
rev = "v${version}";
sha256 = "063kwvgw7g4nn09pyqwqy72vnhzw0aajg23bi32vr0k49g8fx27s";
2019-05-10 22:00:09 +00:00
};
propagatedBuildInputs = [ pyusb pyserial ];
pythonImportsCheck = [ "pyftdi" ];
2019-05-10 22:00:09 +00:00
meta = {
description = "User-space driver for modern FTDI devices";
2020-01-10 20:17:37 +00:00
homepage = "https://github.com/eblot/pyftdi";
license = lib.licenses.bsd3;
2019-05-10 22:00:09 +00:00
};
}