Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1811a07daa94
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9d0722f663dd
Choose a head ref
  • 3 commits
  • 1 file changed
  • 2 contributors

Commits on Dec 30, 2020

  1. Copy the full SHA
    17a354b View commit details

Commits on Dec 31, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4c2edb8 View commit details

Commits on Jan 1, 2021

  1. Copy the full SHA
    9d0722f View commit details
Showing with 20 additions and 5 deletions.
  1. +20 −5 pkgs/development/python-modules/pyftdi/default.nix
25 changes: 20 additions & 5 deletions pkgs/development/python-modules/pyftdi/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,39 @@
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, pyusb, pyserial }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pythonOlder
, pyusb
}:

buildPythonPackage rec {
pname = "pyftdi";
version = "0.51.2";
version = "0.52.0";
disabled = pythonOlder "3.5";

src = fetchFromGitHub {
owner = "eblot";
repo = pname;
rev = "v${version}";
sha256 = "14mkwk44bgm6s4kqagz7nm6p6gsygmksl2628jaqh7ppblxca9as";
sha256 = "0nm4z7v9qcb9mxqbl21jgzica4faldnpy5qmbkrc6scnx55pxfm9";
};

propagatedBuildInputs = [ pyusb pyserial ];

# tests requires access to the serial port
doCheck = false;

pythonImportsCheck = [ "pyftdi" ];

meta = {
meta = with lib; {
description = "User-space driver for modern FTDI devices";
longDescription = ''
PyFtdi aims at providing a user-space driver for popular FTDI devices.
This includes UART, GPIO and multi-serial protocols (SPI, I2C, JTAG)
bridges.
'';
homepage = "https://github.com/eblot/pyftdi";
license = lib.licenses.bsd3;
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}