2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
colorlog,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
pyserial,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypca";
|
|
|
|
version = "0.0.13";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0y0p2rm22x21mykipiv42fjc79b0969qsbhk3cqkrdnqwh5psbdl";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
colorlog
|
|
|
|
pyserial
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pypca" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for interacting with the PCA 301 smart plugs";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pypca";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/majuss/pypca";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|