depot/third_party/nixpkgs/pkgs/development/python-modules/adafruit-pureio/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

39 lines
855 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "adafruit-pureio";
version = "1.1.10";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "Adafruit_PureIO";
inherit version;
hash = "sha256-EgaIN1PAlmMJ5tAtqXBnbpvHtQO7Sib3NuAXOfVqZLk=";
};
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";
changelog = "https://github.com/adafruit/Adafruit_Python_PureIO/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}