1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pyedimax";
12 version = "0.2.1";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-M5cVQjqPZCQMKS8vv+xw2x6KlRqB6mOezwLi53fJb8Q=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ requests ];
25
26 # Module has no tests
27 doCheck = false;
28
29 pythonImportsCheck = [ "pyedimax" ];
30
31 meta = with lib; {
32 description = "Python library for interfacing with the Edimax smart plugs";
33 homepage = "https://github.com/andreipop2005/pyedimax";
34 license = licenses.mit;
35 maintainers = with maintainers; [ fab ];
36 };
37}