depot/third_party/nixpkgs/pkgs/development/python-modules/pyi2cflash/default.nix
Default email ffc78d3539 Project import generated by Copybara.
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
2021-01-05 19:05:55 +02:00

31 lines
619 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pyftdi
}:
buildPythonPackage rec {
pname = "pyi2cflash";
version = "0.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "1nkazgf7pajz7jym5rfy2df71lyfp4skxqbrg5ch0h4dwjdwllx1";
};
propagatedBuildInputs = [
pyftdi
];
# tests are not shipped with the PyPI source
doCheck = false;
pythonImportsCheck = [ "i2cflash" ];
meta = with lib; {
description = "I2C eeprom device drivers in Python";
homepage = "https://github.com/eblot/pyi2cflash";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}