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