about summary refs log tree commit diff
path: root/pkgs/development/python-modules/spidev/default.nix
blob: b4e5344cca85cb47e919eb3c052b723035633f78 (plain) (blame)
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
{ lib, buildPythonPackage, fetchPypi }:

buildPythonPackage rec {
  pname = "spidev";
  version = "3.6";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-FNvDdZSkqu+FQDq2F5hdPD70ZNYrybdp71UttTcBEVs=";
  };

  # package does not include tests
  doCheck = false;

  pythonImportsCheck = [ "spidev" ];

  meta = with lib; {
    homepage = "https://github.com/doceme/py-spidev";
    description = "Python bindings for Linux SPI access through spidev";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
    platforms = platforms.linux;
  };

}