blob: 9d225bc8951061d37fc3070a4023d9864959f3dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
paho-mqtt,
pytestCheckHook,
requests,
setuptools,
setuptools-scm,
}:
buildPythonPackage (finalAttrs: {
pname = "adafruit-io";
version = "3.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "adafruit";
repo = "Adafruit_IO_Python";
tag = finalAttrs.version;
hash = "sha256-INi1ZJf9j8fP+DJrtQvXKWr7gjp8V7OQVOBuSMB1O/0=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
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 = {
description = "Module for interacting with Adafruit IO";
homepage = "https://github.com/adafruit/Adafruit_IO_Python";
changelog = "https://github.com/adafruit/Adafruit_IO_Python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})
|