1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 ifaddr,
6 requests,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pywilight";
12 version = "0.0.74";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-patCdQ7qLEfy+RpH9T/Fa8ubI7QF6OmLzFUokZc5syQ=";
20 };
21
22 propagatedBuildInputs = [
23 ifaddr
24 requests
25 ];
26
27 # Module has no tests
28 doCheck = false;
29
30 pythonImportsCheck = [ "pywilight" ];
31
32 meta = with lib; {
33 description = "Python API for WiLight device";
34 homepage = "https://github.com/leofig-rj/pywilight";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ fab ];
37 };
38}