fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
744 B
Nix
38 lines
744 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
colorlog,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
pyserial,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypca";
|
|
version = "0.0.13";
|
|
format = "setuptools";
|
|
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";
|
|
mainProgram = "pypca";
|
|
homepage = "https://github.com/majuss/pypca";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|