1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "pynobo";
11 version = "1.8.1";
12 pyproject = true;
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "echoromeo";
18 repo = "pynobo";
19 tag = "v${version}";
20 hash = "sha256-OSgpT9CLkfnv1BLAJApZUs3vMc1WE2eG7ZrinCLy/0U=";
21 };
22
23 build-system = [ setuptools ];
24
25 # Project has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "pynobo" ];
29
30 meta = with lib; {
31 description = "Python TCP/IP interface for Nobo Hub/Nobo Energy Control devices";
32 homepage = "https://github.com/echoromeo/pynobo";
33 changelog = "https://github.com/echoromeo/pynobo/releases/tag/v${version}";
34 license = with licenses; [ gpl3Plus ];
35 maintainers = with maintainers; [ fab ];
36 };
37}