1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchPypi
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "lightwave2";
10 version = "0.8.23";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.8";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-umhFqeX16c6o006MU9/9h4EnqcX7v8C5q3XjxYgi+xk=";
18 };
19
20 propagatedBuildInputs = [
21 aiohttp
22 ];
23
24 # Module has no tests
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "lightwave2"
29 ];
30
31 meta = with lib; {
32 description = "Library to interact with LightWaveRF 2nd Gen lights and switches";
33 homepage = "https://github.com/bigbadblunt/lightwave2";
34 license = licenses.mit;
35 maintainers = with maintainers; [ fab ];
36 };
37}