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