1{ lib, buildPythonPackage, fetchPypi }: 2 3buildPythonPackage rec { 4 pname = "spidev"; 5 version = "3.6"; 6 7 src = fetchPypi { 8 inherit pname version; 9 hash = "sha256-FNvDdZSkqu+FQDq2F5hdPD70ZNYrybdp71UttTcBEVs="; 10 }; 11 12 # package does not include tests 13 doCheck = false; 14 15 pythonImportsCheck = [ "spidev" ]; 16 17 meta = with lib; { 18 homepage = "https://github.com/doceme/py-spidev"; 19 description = "Python bindings for Linux SPI access through spidev"; 20 license = licenses.mit; 21 maintainers = with maintainers; [ hexa ]; 22 platforms = platforms.linux; 23 }; 24 25}