1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, bluepy
5}:
6
7buildPythonPackage rec {
8 pname = "avea";
9 version = "1.5.2";
10
11 src = fetchFromGitHub {
12 owner = "k0rventen";
13 repo = pname;
14 rev = "v${version}";
15 sha256 = "1dirf0zdf4hb941w1dvh97vsvcy4h3w9r8jwdgr1ggmhdf9kfx4v";
16 };
17
18 propagatedBuildInputs = [
19 bluepy
20 ];
21
22 # no tests are present
23 doCheck = false;
24 pythonImportsCheck = [ "avea" ];
25
26 meta = with lib; {
27 description = "Python module for interacting with Elgato's Avea bulb";
28 homepage = "https://github.com/k0rventen/avea";
29 license = with licenses; [ mit ];
30 maintainers = with maintainers; [ fab ];
31 };
32}