1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pyftdi,
6}:
7
8buildPythonPackage rec {
9 pname = "pyi2cflash";
10 version = "0.2.2";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "1nkazgf7pajz7jym5rfy2df71lyfp4skxqbrg5ch0h4dwjdwllx1";
16 };
17
18 propagatedBuildInputs = [ pyftdi ];
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}