1{ lib, buildPythonPackage, fetchPypi }: 2 3buildPythonPackage rec { 4 pname = "rpi-gpio"; 5 version = "0.7.1"; 6 7 src = fetchPypi { 8 pname = "RPi.GPIO"; 9 inherit version; 10 hash = "sha256-zWHEsDw3tiu6SlrP6phidJwzxhjgKV5+kKpHE/s3O3A="; 11 }; 12 13 # Tests disable because they do a platform check which requires running on a 14 # Raspberry Pi 15 doCheck = false; 16 17 meta = with lib; { 18 homepage = "https://sourceforge.net/p/raspberry-gpio-python"; 19 description = "Python module to control the GPIO on a Raspberry Pi"; 20 license = licenses.mit; 21 platforms = platforms.linux; 22 maintainers = with maintainers; [ onny ]; 23 }; 24}