about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/adafruit-pureio/default.nix
blob: 36bafb0f7a07d248329992bec65c5f31c652959d (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
27
28
29
{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
}:

buildPythonPackage rec {
  pname = "Adafruit-PureIO";
  version = "1.1.8";

  src = fetchPypi {
    pname = "Adafruit_PureIO";
    inherit version;
    sha256 = "1mfa6sfz7qwgajz3lqw0s69ivvwbwvblwkjzbrwdrxjbma4jaw66";
  };

  nativeBuildInputs = [ setuptools-scm ];

  # Physical SMBus is not present
  doCheck = false;
  pythonImportsCheck = [ "Adafruit_PureIO" ];

  meta = with lib; {
    description = "Python interface to Linux IO including I2C and SPI";
    homepage = "https://github.com/adafruit/Adafruit_Python_PureIO";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}