1{ lib, libgpiod, buildPythonPackage, fetchurl }: 2 3buildPythonPackage rec { 4 pname = "rpi-gpio2"; 5 version = "0.3.0a3"; 6 7 # PyPi source does not work for some reason 8 src = fetchurl { 9 url = "https://github.com/underground-software/RPi.GPIO2/archive/refs/tags/v${version}.tar.gz"; 10 sha256 = "sha256-AY1AD2Yu66eJUqB4OStZnUeEhmISLVRrTOAcmEHjuOM="; 11 }; 12 13 propagatedBuildInputs = [ 14 libgpiod 15 ]; 16 17 # Disable checks because they need to run on the specific platform 18 doCheck = false; 19 20 meta = with lib; { 21 homepage = "https://github.com/underground-software/RPi.GPIO2"; 22 description = '' 23 Compatibility layer between RPi.GPIO syntax and libgpiod semantics 24 ''; 25 license = licenses.gpl3Plus; 26 maintainers = with maintainers; [ onny ]; 27 }; 28}