2023-02-02 18:25:31 +00:00
|
|
|
{ lib, libgpiod, buildPythonPackage, fetchFromGitHub }:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rpi-gpio2";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "0.4.0";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
# PyPi source does not work for some reason
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "underground-software";
|
|
|
|
repo = "RPi.GPIO2";
|
2023-02-09 11:40:11 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-CNnej67yTh3C8n4cCA7NW97rlfIDrrlepRNDkv+BUeY=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
libgpiod
|
|
|
|
];
|
|
|
|
|
|
|
|
# Disable checks because they need to run on the specific platform
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/underground-software/RPi.GPIO2";
|
|
|
|
description = ''
|
|
|
|
Compatibility layer between RPi.GPIO syntax and libgpiod semantics
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|