1{ lib
2, buildPythonPackage
3, colorlog
4, fetchPypi
5, pythonOlder
6, pyserial
7}:
8
9buildPythonPackage rec {
10 pname = "pypca";
11 version = "0.0.13";
12 disabled = pythonOlder "3.5";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "0y0p2rm22x21mykipiv42fjc79b0969qsbhk3cqkrdnqwh5psbdl";
17 };
18
19 propagatedBuildInputs = [
20 colorlog
21 pyserial
22 ];
23
24 # Project has no tests
25 doCheck = false;
26
27 pythonImportsCheck = [ "pypca" ];
28
29 meta = with lib; {
30 description = "Python library for interacting with the PCA 301 smart plugs";
31 homepage = "https://github.com/majuss/pypca";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ fab ];
34 };
35}