1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 bluepy,
6}:
7
8buildPythonPackage rec {
9 pname = "avea";
10 version = "1.5.2";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "k0rventen";
15 repo = "avea";
16 rev = "v${version}";
17 sha256 = "1dirf0zdf4hb941w1dvh97vsvcy4h3w9r8jwdgr1ggmhdf9kfx4v";
18 };
19
20 propagatedBuildInputs = [ bluepy ];
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}