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