1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyserial
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "python-velbus";
10 version = "2.1.14";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-3eDfXPMO167QI/umLBjlHTBV67XQ8QYkg4EzfrRTw6M=";
18 };
19
20 propagatedBuildInputs = [
21 pyserial
22 ];
23
24 # Project has not tests
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "velbus"
29 ];
30
31 meta = with lib; {
32 description = "Python library to control the Velbus home automation system";
33 homepage = "https://github.com/thomasdelaet/python-velbus";
34 license = with licenses; [ mit ];
35 maintainers = with maintainers; [ fab ];
36 };
37}