pythonPackages.pyftdi: v0.44.2 -> 0.49.0

This commit is contained in:
Cole Mickens 2020-03-28 10:17:30 +00:00
parent b310f564c2
commit b5855b9847

View file

@ -1,26 +1,24 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, pyusb
, pyserial
}:
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:
buildPythonPackage rec {
pname = "pyftdi";
version = "0.44.2";
version = "0.49.0";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "18k9wnpjxg71v4jm0pwr2bmksq7sckr6ylh1slf0xgpg89b27bxq";
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.lgpl2;
license = lib.licenses.bsd3;
};
}