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