mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-05 12:19:57 +00:00
Diff: https://github.com/adafruit/Adafruit_Python_PureIO/compare/1.1.12...1.1.13 Changelog: https://github.com/adafruit/Adafruit_Python_PureIO/releases/tag/1.1.13
38 lines
935 B
Nix
38 lines
935 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
pyprojectVersionPatchHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "adafruit-pureio";
|
|
version = "1.1.13";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adafruit";
|
|
repo = "Adafruit_Python_PureIO";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-eXms4hL7tVu8d/6/Gocx3zuwZIgcBhwgOebE/Kku+iM=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
nativeBuildInputs = [ pyprojectVersionPatchHook ];
|
|
|
|
# Physical SMBus is not present
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "Adafruit_PureIO" ];
|
|
|
|
meta = {
|
|
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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|