2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-02-16 17:41:37 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-02-16 17:41:37 +00:00
|
|
|
pname = "adafruit-pureio";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.1.11";
|
|
|
|
format = "pyproject";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Adafruit_PureIO";
|
|
|
|
inherit version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-xM+7NlcxlC0fEJKhFvR9/a4K7xjFsn8QcrWCStXqjHw=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
# Physical SMBus is not present
|
|
|
|
doCheck = false;
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"Adafruit_PureIO"
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface to Linux IO including I2C and SPI";
|
|
|
|
homepage = "https://github.com/adafruit/Adafruit_Python_PureIO";
|
2023-02-16 17:41:37 +00:00
|
|
|
changelog = "https://github.com/adafruit/Adafruit_Python_PureIO/releases/tag/${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|