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