1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5}:
6
7buildPythonPackage rec {
8 pname = "pynobo";
9 version = "1.7.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-LJS4NJM+f+j53YzH8LradBDzHAsOprd4F7nH1cfC3B0=";
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 changelog = "https://github.com/echoromeo/pynobo/releases/tag/v${version}";
32 license = with licenses; [ gpl3Plus ];
33 maintainers = with maintainers; [ fab ];
34 };
35}