1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 aiohttp,
6 paho-mqtt,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "microbeespy";
12 version = "0.3.5";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "microBeesTech";
17 repo = "pythonSDK";
18 tag = version;
19 hash = "sha256-h3IbWdZ/iHsNlAr/DfASj4dKNkQ4t1mUUeUIs00L8iU=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [
25 aiohttp
26 paho-mqtt
27 ];
28
29 # Package doesn't include tests
30 doCheck = false;
31
32 pythonImportsCheck = [ "microBeesPy" ];
33
34 meta = {
35 description = "Official microBees Python Library";
36 homepage = "https://github.com/microBeesTech/pythonSDK";
37 license = lib.licenses.mit;
38 maintainers = [ lib.maintainers.jamiemagee ];
39 };
40}