1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 paho-mqtt, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "adafruit-io"; 14 version = "2.8.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "adafruit"; 21 repo = "Adafruit_IO_Python"; 22 tag = version; 23 hash = "sha256-OwTHMyc2ePSdYVuY1h3PY+uDBl6/7fTMXiZC3sZm8fU="; 24 }; 25 26 nativeBuildInputs = [ setuptools-scm ]; 27 28 propagatedBuildInputs = [ 29 paho-mqtt 30 requests 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "Adafruit_IO" ]; 36 37 disabledTestPaths = [ 38 # Tests requires valid credentials 39 "tests/test_client.py" 40 "tests/test_errors.py" 41 "tests/test_mqtt_client.py" 42 ]; 43 44 meta = with lib; { 45 description = "Module for interacting with Adafruit IO"; 46 homepage = "https://github.com/adafruit/Adafruit_IO_Python"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}