1{ lib, buildPythonPackage, fetchPypi, pythonOlder
2, requests, zeroconf, wakeonlan
3, python }:
4
5buildPythonPackage rec {
6 pname = "openwebifpy";
7 version = "3.2.7";
8 disabled = pythonOlder "3.6";
9
10 src = fetchPypi {
11 inherit pname version;
12 sha256 = "0n9vi6b0y8b41fd7m9p361y3qb5m3b9p9d8g4fasqi7yy4mw2hns";
13 };
14
15 propagatedBuildInputs = [
16 requests
17 zeroconf
18 wakeonlan
19 ];
20
21 checkPhase = ''
22 ${python.interpreter} setup.py test
23 '';
24
25 meta = with lib; {
26 description = "Provides a python interface to interact with a device running OpenWebIf";
27 homepage = "https://openwebifpy.readthedocs.io/";
28 license = licenses.mit;
29 maintainers = with maintainers; [ hexa ];
30 };
31}
32