472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
50 lines
1,023 B
Nix
50 lines
1,023 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
paho-mqtt,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adafruit-io";
|
|
version = "2.8.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "adafruit";
|
|
repo = "Adafruit_IO_Python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-OwTHMyc2ePSdYVuY1h3PY+uDBl6/7fTMXiZC3sZm8fU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
paho-mqtt
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|