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 23:00:09 +01:00
buildPythonPackage rec {
pname = "pyftdi";
version = "0.51.2";
2019-05-10 23:00:09 +01:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "eblot";
repo = pname;
rev = "v${version}";
sha256 = "14mkwk44bgm6s4kqagz7nm6p6gsygmksl2628jaqh7ppblxca9as";
2019-05-10 23:00:09 +01:00
};
propagatedBuildInputs = [ pyusb pyserial ];
pythonImportsCheck = [ "pyftdi" ];
2019-05-10 23:00:09 +01: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 23:00:09 +01:00
};
}