2020-12-07 07:45:13 +00:00
|
|
|
{ buildPythonPackage, coapthon3, fetchFromGitHub, isPy27, lib, pycryptodomex }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-air-control";
|
|
|
|
version = "2.1.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-12-07 07:45:13 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rgerganov";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0mkggl5hwmj90djxbbz4svim6iv7xl8k324cb4rlc75p5rgcdwmh";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pycryptodomex coapthon3 ];
|
|
|
|
|
|
|
|
# tests sometimes hang forever on tear-down
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyairctrl" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Command Line App for Controlling Philips Air Purifiers.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ urbas ];
|
|
|
|
};
|
|
|
|
}
|