12 buildPythonPackage rec {
13 pname = "adafruit-io";
15 format = "setuptools";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
21 repo = "Adafruit_IO_Python";
22 rev = "refs/tags/${version}";
23 hash = "sha256-OwTHMyc2ePSdYVuY1h3PY+uDBl6/7fTMXiZC3sZm8fU=";
26 nativeBuildInputs = [ setuptools-scm ];
28 propagatedBuildInputs = [
33 nativeCheckInputs = [ pytestCheckHook ];
35 pythonImportsCheck = [ "Adafruit_IO" ];
38 # Tests requires valid credentials
39 "tests/test_client.py"
40 "tests/test_errors.py"
41 "tests/test_mqtt_client.py"
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 ];