linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pyftdi / default.nix
blob2b46a4ce6825e6656ed95509e427a4259ef5730a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pyserial
5 , pythonOlder
6 , pyusb
7 }:
9 buildPythonPackage rec {
10   pname = "pyftdi";
11   version = "0.52.9";
12   disabled = pythonOlder "3.5";
14   src = fetchFromGitHub {
15     owner = "eblot";
16     repo = pname;
17     rev = "v${version}";
18     sha256 = "07q9wmpl97a6laxfbcjqhv373msbsjppsyf5i77h0f6ccil0q1i6";
19   };
21   propagatedBuildInputs = [ pyusb pyserial ];
23   # tests requires access to the serial port
24   doCheck = false;
26   pythonImportsCheck = [ "pyftdi" ];
28   meta = with lib; {
29     description = "User-space driver for modern FTDI devices";
30     longDescription = ''
31       PyFtdi aims at providing a user-space driver for popular FTDI devices.
32       This includes UART, GPIO and multi-serial protocols (SPI, I2C, JTAG)
33       bridges.
34     '';
35     homepage = "https://github.com/eblot/pyftdi";
36     license = licenses.bsd3;
37     maintainers = with maintainers; [ fab ];
38   };