Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 29 lines 678 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5}: 6 7buildPythonPackage rec { 8 pname = "Adafruit-PureIO"; 9 version = "1.1.8"; 10 11 src = fetchPypi { 12 pname = "Adafruit_PureIO"; 13 inherit version; 14 sha256 = "1mfa6sfz7qwgajz3lqw0s69ivvwbwvblwkjzbrwdrxjbma4jaw66"; 15 }; 16 17 nativeBuildInputs = [ setuptools-scm ]; 18 19 # Physical SMBus is not present 20 doCheck = false; 21 pythonImportsCheck = [ "Adafruit_PureIO" ]; 22 23 meta = with lib; { 24 description = "Python interface to Linux IO including I2C and SPI"; 25 homepage = "https://github.com/adafruit/Adafruit_Python_PureIO"; 26 license = with licenses; [ mit ]; 27 maintainers = with maintainers; [ fab ]; 28 }; 29}