nixpkgs/pkgs/development/python-modules/rpi-gpio2/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

32 lines
804 B
Nix

{ lib, libgpiod, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec {
pname = "rpi-gpio2";
version = "0.4.0";
format = "setuptools";
# PyPi source does not work for some reason
src = fetchFromGitHub {
owner = "underground-software";
repo = "RPi.GPIO2";
rev = "refs/tags/v${version}";
hash = "sha256-CNnej67yTh3C8n4cCA7NW97rlfIDrrlepRNDkv+BUeY=";
};
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 ];
};
}