summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rpi-gpio/default.nix
blob: 44bcf31750f08fcc0a8ed90cbd05fee897975273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  lib,
  buildPythonPackage,
  fetchPypi,
}:

buildPythonPackage rec {
  pname = "rpi-gpio";
  version = "0.7.1";
  format = "setuptools";

  src = fetchPypi {
    pname = "RPi.GPIO";
    inherit version;
    hash = "sha256-zWHEsDw3tiu6SlrP6phidJwzxhjgKV5+kKpHE/s3O3A=";
  };

  # Tests disable because they do a platform check which requires running on a
  # Raspberry Pi
  doCheck = false;

  meta = {
    homepage = "https://sourceforge.net/p/raspberry-gpio-python";
    description = "Python module to control the GPIO on a Raspberry Pi";
    license = lib.licenses.mit;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ onny ];
  };
}