1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pyftdi, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "pyspiflash"; 11 version = "0.6.5"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "eblot"; 16 repo = "pyspiflash"; 17 tag = "v${version}"; 18 hash = "sha256-NXYXvGSRhsTHu10pDYaZF84+d4QyPKECpuKpmgFstg0="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ pyftdi ]; 24 25 # tests are not shipped with the PyPI source 26 doCheck = false; 27 28 pythonImportsCheck = [ "spiflash" ]; 29 30 meta = with lib; { 31 description = "SPI data flash device drivers in Python"; 32 homepage = "https://github.com/eblot/pyspiflash"; 33 changelog = "https://github.com/eblot/pyspiflash/releases/tag/${src.tag}"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ fab ]; 36 }; 37}