1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyftdi
5}:
6
7buildPythonPackage rec {
8 pname = "pyi2cflash";
9 version = "0.2.2";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "1nkazgf7pajz7jym5rfy2df71lyfp4skxqbrg5ch0h4dwjdwllx1";
14 };
15
16 propagatedBuildInputs = [
17 pyftdi
18 ];
19
20 # tests are not shipped with the PyPI source
21 doCheck = false;
22
23 pythonImportsCheck = [ "i2cflash" ];
24
25 meta = with lib; {
26 description = "I2C eeprom device drivers in Python";
27 homepage = "https://github.com/eblot/pyi2cflash";
28 license = with licenses; [ mit ];
29 maintainers = with maintainers; [ fab ];
30 };
31}