1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 paho-mqtt,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyeconet";
12 version = "0.2.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "w1ll1am23";
17 repo = "pyeconet";
18 tag = "v${version}";
19 hash = "sha256-Q0J1UUvifdf1ePFz4G3Tk0bn1TnnWaHQRABgsohHvB0=";
20 };
21
22 build-system = [ setuptools ];
23
24 pythonRelaxDeps = [ "paho-mqtt" ];
25
26 dependencies = [
27 paho-mqtt
28 aiohttp
29 ];
30
31 # Tests require credentials
32 doCheck = false;
33
34 pythonImportsCheck = [ "pyeconet" ];
35
36 meta = {
37 description = "Python interface to the EcoNet API";
38 homepage = "https://github.com/w1ll1am23/pyeconet";
39 changelog = "https://github.com/w1ll1am23/pyeconet/releases/tag/${src.tag}";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ fab ];
42 };
43}