at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 iso8601, 7 pytz, 8 paho-mqtt, 9 requests, 10 requests-toolbelt, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "ibmiotf"; 16 version = "0.4.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "ibm-watson-iot"; 21 repo = "iot-python"; 22 tag = version; 23 hash = "sha256-/hRRYf3mY7LqZq0jq7neJRwpvgKczHNNo5bN92Rcv5M="; 24 }; 25 26 build-system = [ 27 setuptools 28 ]; 29 30 dependencies = [ 31 iso8601 32 pytz 33 paho-mqtt 34 requests 35 requests-toolbelt 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 ]; 41 42 # Tests require network access and IBM Watson IoT Platform credentials 43 doCheck = false; 44 45 pythonImportsCheck = [ "ibmiotf" ]; 46 47 meta = { 48 description = "Python Client for IBM Watson IoT Platform"; 49 homepage = "https://github.com/ibm-watson-iot/iot-python"; 50 changelog = "https://github.com/ibm-watson-iot/iot-python/releases/tag/${version}"; 51 license = lib.licenses.epl10; 52 maintainers = [ lib.maintainers.jamiemagee ]; 53 }; 54}