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