1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools-scm,
7}:
8
9buildPythonPackage rec {
10 pname = "adafruit-pureio";
11 version = "1.1.11";
12 format = "pyproject";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 pname = "Adafruit_PureIO";
18 inherit version;
19 hash = "sha256-xM+7NlcxlC0fEJKhFvR9/a4K7xjFsn8QcrWCStXqjHw=";
20 };
21
22 nativeBuildInputs = [ setuptools-scm ];
23
24 # Physical SMBus is not present
25 doCheck = false;
26
27 pythonImportsCheck = [ "Adafruit_PureIO" ];
28
29 meta = with lib; {
30 description = "Python interface to Linux IO including I2C and SPI";
31 homepage = "https://github.com/adafruit/Adafruit_Python_PureIO";
32 changelog = "https://github.com/adafruit/Adafruit_Python_PureIO/releases/tag/${version}";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ fab ];
35 };
36}