python3Packages.adafruit-io: init at 2.6.0

This commit is contained in:
Fabian Affolter 2022-03-02 14:49:08 +01:00 committed by Jonathan Ringer
parent 0da44bd46d
commit 3116a1e430
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,57 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, paho-mqtt
, pytestCheckHook
, pythonOlder
, requests
, setuptools-scm
}:
buildPythonPackage rec {
pname = "adafruit-io";
version = "2.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "adafruit";
repo = "Adafruit_IO_Python";
rev = version;
hash = "sha256-tjm+HvUuLK3IxXwuxPidJaBetj+n0BzKOuLj75bM7a8=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
paho-mqtt
requests
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"Adafruit_IO"
];
disabledTestPaths = [
# Tests requires valid credentials
"tests/test_client.py"
"tests/test_errors.py"
"tests/test_mqtt_client.py"
];
meta = with lib; {
description = "Module for interacting with Adafruit IO";
homepage = "https://github.com/adafruit/Adafruit_IO_Python";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -186,6 +186,8 @@ in {
actdiag = callPackage ../development/python-modules/actdiag { };
adafruit-io = callPackage ../development/python-modules/adafruit-io { };
adafruit-platformdetect = callPackage ../development/python-modules/adafruit-platformdetect { };
adafruit-pureio = callPackage ../development/python-modules/adafruit-pureio { };