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