blob: 5f68b854723e58200f7d339065c0eeab16979c63 (
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
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
iso8601,
pytz,
paho-mqtt,
requests,
requests-toolbelt,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "ibmiotf";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ibm-watson-iot";
repo = "iot-python";
tag = version;
hash = "sha256-/hRRYf3mY7LqZq0jq7neJRwpvgKczHNNo5bN92Rcv5M=";
};
build-system = [
setuptools
];
dependencies = [
iso8601
pytz
paho-mqtt
requests
requests-toolbelt
];
nativeCheckInputs = [
pytestCheckHook
];
# Tests require network access and IBM Watson IoT Platform credentials
doCheck = false;
pythonImportsCheck = [ "ibmiotf" ];
meta = {
description = "Python Client for IBM Watson IoT Platform";
homepage = "https://github.com/ibm-watson-iot/iot-python";
changelog = "https://github.com/ibm-watson-iot/iot-python/releases/tag/${version}";
license = lib.licenses.epl10;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
|