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