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";
|
|
|
|
version = "1.1.10";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "Adafruit_PureIO";
|
|
|
|
inherit version;
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-EgaIN1PAlmMJ5tAtqXBnbpvHtQO7Sib3NuAXOfVqZLk=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|